This commit is contained in:
lyc 2024-08-13 16:22:35 +08:00
parent bc5a6e961d
commit e2d9b61fbe
1 changed files with 8 additions and 2 deletions

View File

@ -194,7 +194,8 @@ export default {
entpcourseid: '', entpcourseid: '',
// //
setDialog: false, setDialog: false,
row: '' row: '',
isOpenHomework: false
} }
}, },
computed: { computed: {
@ -225,7 +226,10 @@ export default {
// electron // electron
const curWin = Remote.getCurrentWindow() const curWin = Remote.getCurrentWindow()
curWin.on('focus', ()=>{ curWin.on('focus', ()=>{
if(!this.isOpenHomework) return
console.log(100)
this.initHomeWork() this.initHomeWork()
this.isOpenHomework = false
}) })
@ -466,7 +470,9 @@ export default {
}, },
// //
handleOutLink(key) { handleOutLink(key) {
if(key == 'homeWork'){
this.isOpenHomework = true
}
// key linkConfig.js // key linkConfig.js
let configObj = outLink()[key] let configObj = outLink()[key]
// //