更改地址

This commit is contained in:
zhangxuelin 2024-08-08 14:27:22 +08:00
parent c56039270c
commit a8f9c828d7
2 changed files with 5 additions and 4 deletions

View File

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

View File

@ -537,10 +537,10 @@ export default {
async navtoPdf() { async navtoPdf() {
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()
// console.log(path) console.log(path)
// console.log(this.uploadData.textbookId) // 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() { openLesson() {