修复 bug

This commit is contained in:
zdg 2024-09-04 19:50:23 +08:00
parent 3171c0b3f9
commit 70e99e69ba
3 changed files with 18 additions and 4 deletions

View File

@ -103,7 +103,9 @@ const renderPage = async (canvasobj) => {
const savaDataStore = (type) => {
if(!toolState.isToolWin){
toolState.isPdfWin = false
nextTick(() => {
toolState.showBoardAll = true //
})
if(type=='rest'){
ipcRenderer.invoke('tool-sphere:reset') //tool
ipcRenderer.send('open-PDF:close')
@ -143,7 +145,9 @@ const savaDataStore = (type) => {
})
Promise.all(promises).then(res=>{
toolState.isPdfWin=false
nextTick(() => {
toolState.showBoardAll=true //
})
// ipcRenderer.send('open-PDF:minimize')
if(type=='rest'){
ipcRenderer.invoke('tool-sphere:reset') //tool

View File

@ -105,6 +105,7 @@ const switchPageMode = () => {
}
onMounted(async () => {
const isDev = process.env.NODE_ENV == 'development'
// toolState.showBoardAll = false //
toolState.isPdfWin=true //pdf
if (isDev)
pdfObj.pdfUrl = getStaticUrl('aaa.pdf', 'user', 'selfFile', true) //

View File

@ -83,6 +83,8 @@ const btnList = [ // 工具栏按钮列表
// === ===
onMounted(async() => {
if (!electron) return //
// window.test = sessionStore
// window.test1 = toolStore
getClassInfo() // ex3
resetStatus() // -
})
@ -104,6 +106,7 @@ const getClassInfo = async () => {
const tabChange = (val) => {
const bool = !toolStore.isPdfWin && !toolStore.showBoardAll
if(bool) toolStore.showBoardAll = true
console.log('tabChange:', val, bool)
toolStore.model = val // tab
}
// logo - |
@ -133,7 +136,13 @@ const logoHandle = (e,t) => {
const mouseChange = (bool) => {
let resBool = false
if (tabActive.value == 'select') resBool = !!bool
else {
if (!isShow.value) resBool = !!bool
// pdf穿
const isPdf = !resBool && toolStore.isPdfWin
if (isPdf) resBool = true
}
// console.log('mouseChange:', bool, resBool)
setIgnore(resBool)
}
// im-chat: {type, data}