Merge branch 'dev-3.8' of git.mesalab.cn:nezha/nezha-fronted into dev-3.8
This commit is contained in:
@@ -124,6 +124,11 @@ export default {
|
|||||||
interval: null
|
interval: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
externalTerminal () {
|
||||||
|
return this.$store.getters.getExternalTerminal
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
close () {
|
close () {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
@@ -154,13 +159,18 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
this.$router.push({
|
if (!this.externalTerminal) {
|
||||||
path: '/asset',
|
this.$store.dispatch('dispatchExternalTerminal')
|
||||||
query: {
|
} else {
|
||||||
t: +new Date()
|
this.$store.dispatch('dispatchOpenExternalTerminalWindow')
|
||||||
}
|
}
|
||||||
})
|
// this.$router.push({
|
||||||
this.$store.commit('openConsole')
|
// path: '/asset',
|
||||||
|
// query: {
|
||||||
|
// t: +new Date()
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// this.$store.commit('openConsole')
|
||||||
},
|
},
|
||||||
jump (guide) {
|
jump (guide) {
|
||||||
if (!this.hasButton(guide.permissionCode)) {
|
if (!this.hasButton(guide.permissionCode)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user