NEZ-735 :fix:修改 web terminal 最小化后,重新显示,显示不正确的问题

This commit is contained in:
zhangyu
2021-06-07 17:30:19 +08:00
parent fca38e7e3b
commit b399fd9f6e
2 changed files with 6 additions and 4 deletions

View File

@@ -534,7 +534,7 @@ export default {
}
}, 10)
// this.$store.commit('addConsole');
this.$store.commit('addConsoleNum')
},
show (id, host, accountId, port) {
this.addConsole(id, host, accountId, port, 'asset')

View File

@@ -67,7 +67,7 @@ const store = new Vuex.Store({
},
getIsShrink (state) {
return state.isShrink
},
}
},
mutations: {
/* 监听对象变化,用于顶部菜单与底部内容的同步 */
@@ -88,9 +88,11 @@ const store = new Vuex.Store({
},
addConsole (state, data) { // 打开console并新建一个console
state.consoleShow = true
state.consoleCount++
state.isAddConsole = true
state.consoleParam = data
setTimeout(() => {
state.isAddConsole = false
}, 100)
},
addConsoleNum (state) {
state.consoleCount++
@@ -145,7 +147,7 @@ const store = new Vuex.Store({
},
isShrink (state) {
state.isShrink = !state.isShrink
localStorage.setItem('nz-left-menu-shrink', state.isShrink)
localStorage.setItem('nz-left-menu-shrink', state.isShrink)
}
},
actions: {