From e5845a6714e98f3f63347bc13c9b45fd4fc076d8 Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Thu, 8 Aug 2024 17:44:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=9C=9F=EF=BC=9A=E9=A2=84=E7=BA=A6?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/prepare/index.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/views/prepare/index.vue b/src/renderer/src/views/prepare/index.vue index a663c25..d2d56be 100644 --- a/src/renderer/src/views/prepare/index.vue +++ b/src/renderer/src/views/prepare/index.vue @@ -225,7 +225,7 @@ export default { }) ipcRenderer.once('download-file-default' + fileName, (e, isSuccess) => { if (isSuccess === true) { - resolve(appRootFilePath + fileName) + resolve(fileName) } else { ElMessage({ type: 'info', @@ -234,7 +234,7 @@ export default { } }) } else { - resolve(appRootFilePath + fileName) + resolve(fileName) } }) }) @@ -538,8 +538,6 @@ export default { const toolStore = useToolState() if (toolStore.isPdfWin) return this.$message.error('您当前已打开课本,请勿重复操作') let path = await this.getBookPathFromServer() - path=path.replace(/^.*[\\\/]/, ''); - // console.log(this.uploadData.textbookId) createWindow('open-PDF', { url: '/classBegins/index?textbookId='+this.uploadData.textbookId+'&path='+ path }) }, // 上课-工具类悬浮