Skip to content

Commit 51beb72

Browse files
committed
fix: reset sub tab to status page
1 parent 79fd2a6 commit 51beb72

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/src/components/content/ContentPane.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const isBlankValue = computed(() => {
7070
})
7171
7272
const selectedSubTab = computed(() => {
73-
const { subTab = 'status' } = tabStore.currentTab || {}
73+
const { subTab = BrowserTabType.Status } = tabStore.currentTab || {}
7474
return subTab
7575
})
7676
@@ -104,7 +104,7 @@ watch(
104104
}"
105105
:value="selectedSubTab"
106106
class="content-sub-tab"
107-
default-value="status"
107+
:default-value="BrowserTabType.Status.toString()"
108108
pane-class="content-sub-tab-pane"
109109
placement="top"
110110
tab-style="padding-left: 10px; padding-right: 10px;"

frontend/src/stores/tab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const useTabStore = defineStore('tab', {
180180
}) {
181181
let tabIndex = findIndex(this.tabList, { name: server })
182182
if (tabIndex === -1) {
183-
subTab = subTab || BrowserTabType.KeyDetail
183+
subTab = subTab || BrowserTabType.Status
184184
const tabItem = new TabItem({
185185
name: server,
186186
title: server,

0 commit comments

Comments
 (0)