fix: reset sub tab to `status` page

This commit is contained in:
Lykin 2024-12-25 11:04:36 +08:00
parent 79fd2a6d39
commit 51beb7249f
2 changed files with 3 additions and 3 deletions

View File

@ -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;"

View File

@ -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,