From cc5c823071c47d24b064bf5f8c1d650b3425d405 Mon Sep 17 00:00:00 2001 From: zhangxuelin <959231531@qq.com> Date: Tue, 13 Aug 2024 09:09:49 +0800 Subject: [PATCH] 1 --- src/renderer/src/components/pdf/index.vue | 13 ++++++------- src/renderer/src/views/classBegins/index.vue | 2 +- src/renderer/src/views/tool/sphere.vue | 2 ++ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/renderer/src/components/pdf/index.vue b/src/renderer/src/components/pdf/index.vue index afc4acb..2ab4c39 100644 --- a/src/renderer/src/components/pdf/index.vue +++ b/src/renderer/src/components/pdf/index.vue @@ -380,14 +380,13 @@ defineExpose({ savaDataStore }) watchEffect(() => { - console.log(toolState.isToolWin,'监听') - console.log(toolState,'监听111') - if(toolState.isToolWin){ - ispointer.value=false - }else{ - ispointer.value=true - } + console.log(toolState,'监听') if(toolState.isPdfWin){ + // if(toolState.isToolWin){ + // ispointer.value=false + // }else{ + // ispointer.value=true + // } watchToolState() //监听工具栏 } }) diff --git a/src/renderer/src/views/classBegins/index.vue b/src/renderer/src/views/classBegins/index.vue index a96f6e7..3d7e874 100644 --- a/src/renderer/src/views/classBegins/index.vue +++ b/src/renderer/src/views/classBegins/index.vue @@ -105,7 +105,7 @@ const switchPageMode = () => { } onMounted(async () => { toolState.isPdfWin=true - // pdfObj.pdfUrl = getStaticUrl(route.query.path, 'user', 'selfFile', true) + // pdfObj.pdfUrl = getStaticUrl(route.query.path, 'user', 'selfFile', true) //线上 pdfObj.pdfUrl = getStaticUrl('aaa.pdf', 'user', 'selfFile', true) //本地 textbookId.value = route.query.textbookId pdfObj.bookId=textbookId.value diff --git a/src/renderer/src/views/tool/sphere.vue b/src/renderer/src/views/tool/sphere.vue index e6c22f3..d40670d 100644 --- a/src/renderer/src/views/tool/sphere.vue +++ b/src/renderer/src/views/tool/sphere.vue @@ -100,6 +100,7 @@ const resetStatus = () => { }, 500) }) toolStore.isToolWin = true // 标记状态 + } // 侧边工具栏: 移入移出 const sideMouse = e => { @@ -125,6 +126,7 @@ const sideChange = o => { // === 监听器 === watchEffect(() => { + console.log(toolStore) // 不同的时候, 更新值: 是否显示-画板 const show = !toolStore.isPdfWin && toolStore.showBoardAll if (show != isShow.value) isShow.value = show