From a1c7d06f6aa5835bc5b9f034cc02789be26ae0ea Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 23 Oct 2023 15:40:55 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-3249=20fix=EF=BC=9A=E4=BB=8E=20=E5=90=91?= =?UTF-8?q?=E5=AF=BC=20Asset->WebTerminal=20=E6=89=93=E5=BC=80=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/popBox/guide.vue | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/nezha-fronted/src/components/common/popBox/guide.vue b/nezha-fronted/src/components/common/popBox/guide.vue index 65bf0af48..7d9b97207 100644 --- a/nezha-fronted/src/components/common/popBox/guide.vue +++ b/nezha-fronted/src/components/common/popBox/guide.vue @@ -124,6 +124,11 @@ export default { interval: null } }, + computed: { + externalTerminal () { + return this.$store.getters.getExternalTerminal + } + }, methods: { close () { this.$emit('close') @@ -154,13 +159,18 @@ export default { return } this.$emit('close') - this.$router.push({ - path: '/asset', - query: { - t: +new Date() - } - }) - this.$store.commit('openConsole') + if (!this.externalTerminal) { + this.$store.dispatch('dispatchExternalTerminal') + } else { + this.$store.dispatch('dispatchOpenExternalTerminalWindow') + } + // this.$router.push({ + // path: '/asset', + // query: { + // t: +new Date() + // } + // }) + // this.$store.commit('openConsole') }, jump (guide) { if (!this.hasButton(guide.permissionCode)) {