NEZ-2673 fix:Data centers通过Asset打开Terminal未修改

This commit is contained in:
zhangyu
2023-03-10 14:01:16 +08:00
parent f6b3def6b4
commit ae68899443
3 changed files with 23 additions and 3 deletions

View File

@@ -79,6 +79,11 @@ export default {
assetBox,
alertSilenceBox
},
computed: {
externalTerminal () {
return this.$store.getters.getExternalTerminal
}
},
data () {
return {
url: '/asset/asset',
@@ -220,7 +225,12 @@ export default {
host: row.manageIp,
port: row.authProtocolPort
}
this.$store.commit('addConsole', consoleParam)
if (!this.externalTerminal) {
this.$store.dispatch('dispatchExternalTerminal', consoleParam)
} else {
this.$store.dispatch('dispatchOpenExternalTerminalWindow', consoleParam)
}
// this.$store.commit('addConsole', consoleParam)
},
getTableData (params) {
if (params && Object.keys(params).length > 0) {

View File

@@ -78,6 +78,11 @@ export default {
assetBox,
alertSilenceBox
},
computed: {
externalTerminal () {
return this.$store.getters.getExternalTerminal
}
},
data () {
return {
url: '/asset/asset',
@@ -219,7 +224,12 @@ export default {
host: row.manageIp,
port: row.authProtocolPort
}
this.$store.commit('addConsole', consoleParam)
if (!this.externalTerminal) {
this.$store.dispatch('dispatchExternalTerminal', consoleParam)
} else {
this.$store.dispatch('dispatchOpenExternalTerminalWindow', consoleParam)
}
// this.$store.commit('addConsole', consoleParam)
},
getTableData (params) {
if (params && Object.keys(params).length > 0) {

View File

@@ -180,9 +180,9 @@ export default {
},
logout () {
this.$get('logout').then(() => {
sessionStorage.setItem('nz-is-logout', '1')
this.logoutSuccess()
document.location.href = '/'
sessionStorage.setItem('nz-is-logout', '1')
// this.$router.push('/login')
})
},