This commit is contained in:
parent
bc5a6e961d
commit
e2d9b61fbe
|
@ -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]
|
||||||
// 通知主进程
|
// 通知主进程
|
||||||
|
|
Loading…
Reference in New Issue