fix: Fix the issue of abnormal menu tab switching (#10773)

Refs #10765
This commit is contained in:
ssongliu 2025-10-27 17:52:18 +08:00 committed by GitHub
parent ff36b65af4
commit 4253b48bba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ onMounted(() => {
const tabChange = (tabPath) => {
const tab = tabsStore.findTab(tabPath);
if (tab) {
router.push(tab);
router.push({ path: tab.path, query: { uncached: 'true' } });
tabsStore.activeTabPath = tab.path;
}
};