mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 11:09:19 +08:00
update: 升级vben5.5.9到5.7.0
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user