|
@@ -134,7 +134,7 @@ class MainSerivce {
|
|
|
if (evt === 'close-loading') {
|
|
if (evt === 'close-loading') {
|
|
|
if (this.loadingWin) this.loadingWin.close()
|
|
if (this.loadingWin) this.loadingWin.close()
|
|
|
this.mainWin.show()
|
|
this.mainWin.show()
|
|
|
- // if (this.mainWin.isVisible()) this.connectLogi()
|
|
|
|
|
|
|
+ if (this.mainWin.isVisible()) this.connectLogi()
|
|
|
} else if (evt === 'minWin') {
|
|
} else if (evt === 'minWin') {
|
|
|
this.mainWin.minimize()
|
|
this.mainWin.minimize()
|
|
|
} else if (evt === 'closeWin') {
|
|
} else if (evt === 'closeWin') {
|
|
@@ -199,6 +199,7 @@ class MainSerivce {
|
|
|
this.contrlEvent = null
|
|
this.contrlEvent = null
|
|
|
dialog.showMessageBox(this.mainWin, { message: msg.text, type: 'error', title: '连接错误' }).then(async ({ response }) => {
|
|
dialog.showMessageBox(this.mainWin, { message: msg.text, type: 'error', title: '连接错误' }).then(async ({ response }) => {
|
|
|
if (!response) {
|
|
if (!response) {
|
|
|
|
|
+ if(msg.includes('请链接')) return
|
|
|
await sleep(2000)
|
|
await sleep(2000)
|
|
|
this.connectLogi()
|
|
this.connectLogi()
|
|
|
}
|
|
}
|