二期:预约列表开发

This commit is contained in:
朱浩 2024-08-08 17:44:03 +08:00
parent 1c1ec2be71
commit e5845a6714
1 changed files with 2 additions and 4 deletions

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 })
}, },
// - // -