update: 升级vben5.5.9到5.7.0

This commit is contained in:
2026-09-22 17:09:46 +08:00
parent 345e4a31f8
commit 802f72cd9e
766 changed files with 28468 additions and 15447 deletions
@@ -47,7 +47,7 @@ export function useTabs() {
}
async function openTabInNewWindow(tab?: RouteLocationNormalized) {
await tabbarStore.openTabInNewWindow(tab || route);
await tabbarStore.openTabInNewWindow(tab || route, router);
}
async function closeTabByKey(key: string) {
@@ -86,17 +86,6 @@ export function useTabs() {
* @param tab
*/
function getTabDisableState(tab: RouteLocationNormalized = route) {
if (!tab || typeof tab.path !== 'string') {
return {
disabledCloseAll: true,
disabledCloseCurrent: true,
disabledCloseLeft: true,
disabledCloseOther: true,
disabledCloseRight: true,
disabledRefresh: true,
};
}
const tabs = tabbarStore.getTabs;
const affixTabs = tabbarStore.affixTabs;
const index = tabs.findIndex((item) => item.path === tab.path);