解决下课异常

This commit is contained in:
zdg 2024-09-23 11:05:14 +08:00
parent a05cf19e74
commit 372371e2f0
2 changed files with 5 additions and 3 deletions

View File

@ -23,11 +23,12 @@ export const useToolState = defineStore('tool', {
}),
actions: {
async resetDef() { // 重置数据-下课
this.model = 'select' // 悬浮球-当前模式
await sleep(20) // 休眠20ms
// this.model = 'select' // 悬浮球-当前模式
await sleep(50) // 休眠50ms
this.showBoardAll = false // 全屏画板-是否显示
await sleep(20) // 休眠20ms
await sleep(50) // 休眠50ms
this.isToolWin = false // 工具窗口是否打开
await sleep(50) // 休眠50ms
}
}
})

View File

@ -243,6 +243,7 @@ const sideChange = async o => {
// === ===
watchEffect(() => {
if (isOver.value) return // ,
// , : -
const show = !toolStore.isPdfWin && toolStore.showBoardAll
if (show != isShow.value) isShow.value = show