feat: The accordion mode of the menu is configurable

This commit is contained in:
vben
2024-05-22 22:56:26 +08:00
parent a0423eb9ba
commit c28adc9a94
12 changed files with 30 additions and 3 deletions

View File

@@ -269,7 +269,7 @@ const useTabsStore = defineStore('tabs', {
await this.closeTab(this.tabs[index], router);
},
getTabPath(tab: RouteRecordNormalized | TabItem) {
return (tab as TabItem).fullPath || tab.path;
return decodeURIComponent((tab as TabItem).fullPath || tab.path);
},
/**
* @zh_CN 固定标签页