zhuhao_dev #114

Merged
zhuhao merged 8 commits from zhuhao_dev into main 2024-08-09 17:27:16 +08:00
1 changed files with 2 additions and 4 deletions
Showing only changes of commit e5845a6714 - Show all commits

View File

@ -225,7 +225,7 @@ export default {
}) })
ipcRenderer.once('download-file-default' + fileName, (e, isSuccess) => { ipcRenderer.once('download-file-default' + fileName, (e, isSuccess) => {
if (isSuccess === true) { if (isSuccess === true) {
resolve(appRootFilePath + fileName) resolve(fileName)
} else { } else {
ElMessage({ ElMessage({
type: 'info', type: 'info',
@ -234,7 +234,7 @@ export default {
} }
}) })
} else { } else {
resolve(appRootFilePath + fileName) resolve(fileName)
} }
}) })
}) })
@ -538,8 +538,6 @@ export default {
const toolStore = useToolState() const toolStore = useToolState()
if (toolStore.isPdfWin) return this.$message.error('您当前已打开课本,请勿重复操作') if (toolStore.isPdfWin) return this.$message.error('您当前已打开课本,请勿重复操作')
let path = await this.getBookPathFromServer() 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 }) createWindow('open-PDF', { url: '/classBegins/index?textbookId='+this.uploadData.textbookId+'&path='+ path })
}, },
// - // -