zdg #111

Merged
zhangxuelin merged 3 commits from zdg into main 2024-08-08 17:37:43 +08:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit a8f9c828d7 - Show all commits

View File

@ -107,7 +107,8 @@ const switchPageMode = () => {
}
onMounted(async () => {
toolState.isPdfWin=true
console.log(toolState.showBoardAll,"c初始")
console.log(route.query.path,"c初始")
pdfObj.pdfUrl = route.query.path
textbookId.value = route.query.textbookId
pdfObj.bookId=textbookId.value
getBookMarkById(textbookId.value).then(res=>{

View File

@ -537,10 +537,10 @@ export default {
async navtoPdf() {
const toolStore = useToolState()
if (toolStore.isPdfWin) return this.$message.error('您当前已打开课本,请勿重复操作')
// let path = await this.getBookPathFromServer()
// console.log(path)
let path = await this.getBookPathFromServer()
console.log(path)
// console.log(this.uploadData.textbookId)
createWindow('open-PDF', { url: '/classBegins/index?textbookId='+this.uploadData.textbookId })
createWindow('open-PDF', { url: '/classBegins/index?textbookId='+this.uploadData.textbookId+'&path='+ path })
},
// -
openLesson() {