From 2a2a3ee478ee96170cbc296993defee0b3093d4a Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Mon, 19 Jun 2023 11:51:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E5=88=B0`V4.4.0`=E7=89=88=E6=9C=AC=E5=90=8E=EF=BC=8C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=BC=80=E5=90=AF`keepAlive`=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=90=8E=E7=AC=AC=E4=B8=80=E6=AC=A1=E5=8A=A0=E8=BD=BD=E5=B9=B6?= =?UTF-8?q?=E6=9C=AA=E7=BC=93=E5=AD=98=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/permission.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/permission.ts b/src/store/modules/permission.ts index e357c9006..33fd0ddd4 100644 --- a/src/store/modules/permission.ts +++ b/src/store/modules/permission.ts @@ -2,8 +2,8 @@ import { defineStore } from "pinia"; import { store } from "@/store"; import { cacheType } from "./types"; import { constantMenus } from "@/router"; -import { getKeyList } from "@pureadmin/utils"; import { useMultiTagsStoreHook } from "./multiTags"; +import { debounce, getKeyList } from "@pureadmin/utils"; import { ascending, filterTree, filterNoPermissionTree } from "@/router/utils"; export const usePermissionStore = defineStore({ @@ -37,7 +37,7 @@ export const usePermissionStore = defineStore({ break; } /** 监听缓存页面是否存在于标签页,不存在则删除 */ - (() => { + debounce(() => { let cacheLength = this.cachePageList.length; const nameList = getKeyList(useMultiTagsStoreHook().multiTags, "name"); while (cacheLength > 0) {