mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-11 03:22:06 +00:00
Fixed: Change Secret Dashboard Jump
This commit is contained in:
parent
1d288f6212
commit
7c20d08ce2
@ -124,6 +124,13 @@ export default {
|
|||||||
return needActiveComponent
|
return needActiveComponent
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
activeMenu: {
|
||||||
|
handler(newValue) {
|
||||||
|
this.iActiveMenu = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.iActiveMenu = this.getPropActiveTab()
|
this.iActiveMenu = this.getPropActiveTab()
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
@ -49,9 +49,11 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('Total'),
|
title: this.$t('Total'),
|
||||||
body: {
|
body: {
|
||||||
route: { name: 'AccountChangeSecret', query: { tab: 'AccountChangeSecretList' }},
|
|
||||||
canDirect: true,
|
canDirect: true,
|
||||||
count: this.data.total_count_change_secrets
|
count: this.data.total_count_change_secrets,
|
||||||
|
callback: () => {
|
||||||
|
this.$eventBus.$emit('change-tab', 'AccountChangeSecretList')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -73,9 +75,11 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('Total'),
|
title: this.$t('Total'),
|
||||||
body: {
|
body: {
|
||||||
route: { name: 'AccountChangeSecret', query: { tab: 'AccountChangeSecretExecutionList' }},
|
|
||||||
canDirect: true,
|
canDirect: true,
|
||||||
count: this.data.total_count_change_secret_executions
|
count: this.data.total_count_change_secret_executions,
|
||||||
|
callback: () => {
|
||||||
|
this.$eventBus.$emit('change-tab', 'AccountChangeSecretExecutionList')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -45,6 +45,17 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['hasValidLicense'])
|
...mapGetters(['hasValidLicense'])
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$eventBus.$on('change-tab', this.handleChangeTab)
|
||||||
|
},
|
||||||
|
beforeDestroy() {
|
||||||
|
this.$eventBus.$off('change-tab', this.handleChangeTab)
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleChangeTab(tab) {
|
||||||
|
this.config.activeMenu = tab
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user