@@ -66,6 +66,7 @@
// 关闭窗口
async closeWindow() {
+ // 退出登录
await reqLogout(this.user)
require('electron').ipcRenderer.send('window-close')
}
@@ -209,7 +209,7 @@
obj[item.ID].bindList.push(i + 1)
// 根据拼接屏数量得到分屏状态
- obj[item.ID].splitStatus = Math.floor(Math.sqrt(num) - 1)
+ obj[item.ID].splitStatus = Math.floor(Math.sqrt(num) - 1) === -1 ? 0 : Math.floor(Math.sqrt(num) - 1)
})
this.$store.dispatch('updateBigscreenObj', {...obj,...bigscreenObj})
@@ -149,6 +149,7 @@
+ // 需要先退出登录