chore: 同步完整版代码

This commit is contained in:
xiaoxian521
2023-06-19 12:04:37 +08:00
parent 872e0bbd5b
commit 4b435d0e0f
3 changed files with 266 additions and 257 deletions

View File

@@ -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) {