From b506e8a6a4bb9c35c6e52664f8f608e9d9a7be58 Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:57:51 +0800 Subject: [PATCH] fix: auto refresh should not force activation of owning tabs (#336) --- frontend/src/stores/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/stores/tab.js b/frontend/src/stores/tab.js index 7441bc6..f9b775a 100644 --- a/frontend/src/stores/tab.js +++ b/frontend/src/stores/tab.js @@ -198,6 +198,7 @@ const useTabStore = defineStore('tab', { }) this.tabList.push(tabItem) tabIndex = this.tabList.length - 1 + this._setActivatedIndex(tabIndex, true, subTab) } else { const tab = this.tabList[tabIndex] tab.blank = false @@ -219,7 +220,6 @@ const useTabStore = defineStore('tab', { tab.value = undefined } } - this._setActivatedIndex(tabIndex, true, subTab) }, /**