From 1518d9c3aed48711717ae2ea490abee9a97846cc Mon Sep 17 00:00:00 2001 From: zdg Date: Tue, 27 Aug 2024 11:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BD=9C=E4=B8=9A=E6=8E=A8?= =?UTF-8?q?=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron-builder.yml | 11 ++++++----- src/renderer/src/components/set-homework/index.vue | 4 ++-- src/renderer/src/views/tool/components/homework.vue | 5 +++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/electron-builder.yml b/electron-builder.yml index c8b395c..46e484d 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -13,11 +13,6 @@ asarUnpack: win: executableName: AIx icon: resources/logo2.ico - extraFiles: - - from: ./node_modules/im_electron_sdk/lib/ - to: ./resources - filter: - - '**/*' nsis: oneClick: false allowToChangeInstallationDirectory: true @@ -50,3 +45,9 @@ publish: url: https://file.ysaix.com:7868/src/assets/smarttalk/ electronDownload: mirror: https://npmmirror.com/mirrors/electron/ +# 额外依赖打包到输出目录 +extraFiles: + - from: ./node_modules/im_electron_sdk/lib/ + to: ./resources + filter: + - '**/*' diff --git a/src/renderer/src/components/set-homework/index.vue b/src/renderer/src/components/set-homework/index.vue index 233bf99..7518cf2 100644 --- a/src/renderer/src/components/set-homework/index.vue +++ b/src/renderer/src/components/set-homework/index.vue @@ -250,10 +250,10 @@ const onSubmit = (formEl) => { saveByClassWorkArray({ classworkarray: JSON.stringify(ary) }) - .then(() => { + .then((res) => { setLoading.value = false ElMessage.success('操作成功') - emit('on-success') + emit('on-success', res.data) cloneDialog(formEl) }) .catch(() => { diff --git a/src/renderer/src/views/tool/components/homework.vue b/src/renderer/src/views/tool/components/homework.vue index 35c1c61..d6a29b3 100644 --- a/src/renderer/src/views/tool/components/homework.vue +++ b/src/renderer/src/views/tool/components/homework.vue @@ -111,9 +111,10 @@ const closeHomework = async() => { ipcMsgSend('tool-sphere:set:ignore', true) } // 推送成功 -const successHomework = ()=>{ +const successHomework = (data)=>{ + // console.log('推送成功', data) // 发送im消息-推送作业(app|平板) - ipcMsgInvoke('im-chat:msg', curRow.value.id, MsgEnum.HEADS.MSG_0016) + ipcMsgInvoke('im-chat:msg', data, MsgEnum.HEADS.MSG_0016) } // 章节目录change const changeChapter = async (data)=>{ -- 2.44.0.windows.1