fix: reset sub tab to `status` page
This commit is contained in:
parent
79fd2a6d39
commit
51beb7249f
|
@ -70,7 +70,7 @@ const isBlankValue = computed(() => {
|
|||
})
|
||||
|
||||
const selectedSubTab = computed(() => {
|
||||
const { subTab = 'status' } = tabStore.currentTab || {}
|
||||
const { subTab = BrowserTabType.Status } = tabStore.currentTab || {}
|
||||
return subTab
|
||||
})
|
||||
|
||||
|
@ -104,7 +104,7 @@ watch(
|
|||
}"
|
||||
:value="selectedSubTab"
|
||||
class="content-sub-tab"
|
||||
default-value="status"
|
||||
:default-value="BrowserTabType.Status.toString()"
|
||||
pane-class="content-sub-tab-pane"
|
||||
placement="top"
|
||||
tab-style="padding-left: 10px; padding-right: 10px;"
|
||||
|
|
|
@ -180,7 +180,7 @@ const useTabStore = defineStore('tab', {
|
|||
}) {
|
||||
let tabIndex = findIndex(this.tabList, { name: server })
|
||||
if (tabIndex === -1) {
|
||||
subTab = subTab || BrowserTabType.KeyDetail
|
||||
subTab = subTab || BrowserTabType.Status
|
||||
const tabItem = new TabItem({
|
||||
name: server,
|
||||
title: server,
|
||||
|
|
Loading…
Reference in New Issue