From 2880174be201e01a20009a9471c18c2a0eeccc2f Mon Sep 17 00:00:00 2001 From: mrmsl Date: Wed, 31 Jul 2024 10:20:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(multipleTab):=20=E5=B7=B2=E7=BB=8F=E6=89=93?= =?UTF-8?q?=E5=BC=80=E7=9A=84=E5=8A=A8=E6=80=81=E8=B7=AF=E7=94=B1=E6=95=B0?= =?UTF-8?q?=E5=88=A4=E6=96=ADbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/multipleTab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/multipleTab.ts b/src/store/modules/multipleTab.ts index 6a57acd5..0ae94404 100644 --- a/src/store/modules/multipleTab.ts +++ b/src/store/modules/multipleTab.ts @@ -160,7 +160,7 @@ export const useMultipleTabStore = defineStore({ const realPath = meta?.realPath ?? ''; // 获取到已经打开的动态路由数, 判断是否大于某一个值 if ( - this.tabList.filter((e) => e.meta?.realPath ?? '' === realPath).length >= dynamicLevel + this.tabList.filter((e) => (e.meta?.realPath ?? '') === realPath).length >= dynamicLevel ) { // 关闭第一个 const index = this.tabList.findIndex((item) => item.meta.realPath === realPath);