This commit is contained in:
parent
bc5a6e961d
commit
e2d9b61fbe
|
@ -194,7 +194,8 @@ export default {
|
|||
entpcourseid: '',
|
||||
// 布置作业弹窗
|
||||
setDialog: false,
|
||||
row: ''
|
||||
row: '',
|
||||
isOpenHomework: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
@ -225,7 +226,10 @@ export default {
|
|||
// electron 当前窗口
|
||||
const curWin = Remote.getCurrentWindow()
|
||||
curWin.on('focus', ()=>{
|
||||
if(!this.isOpenHomework) return
|
||||
console.log(100)
|
||||
this.initHomeWork()
|
||||
this.isOpenHomework = false
|
||||
})
|
||||
|
||||
|
||||
|
@ -466,7 +470,9 @@ export default {
|
|||
},
|
||||
// 打开外部链接
|
||||
handleOutLink(key) {
|
||||
|
||||
if(key == 'homeWork'){
|
||||
this.isOpenHomework = true
|
||||
}
|
||||
// key 对应的 linkConfig.js 外部链接配置
|
||||
let configObj = outLink()[key]
|
||||
// 通知主进程
|
||||
|
|
Loading…
Reference in New Issue