Browse Source

chore: 同步完整版代码

i18n
xiaoxian521 1 year ago
parent
commit
96a39b3974
  1. 18
      package.json
  2. 503
      pnpm-lock.yaml
  3. 4
      src/store/modules/permission.ts

18
package.json

@ -31,8 +31,8 @@
"dependencies": {
"@pureadmin/descriptions": "^1.1.1",
"@pureadmin/table": "^2.3.2",
"@pureadmin/utils": "^1.9.4",
"@vueuse/core": "^10.1.2",
"@pureadmin/utils": "^1.9.6",
"@vueuse/core": "^10.2.0",
"@vueuse/motion": "^2.0.0",
"animate.css": "^4.1.1",
"axios": "^1.4.0",
@ -44,14 +44,14 @@
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"path": "^0.12.7",
"pinia": "^2.1.3",
"pinia": "^2.1.4",
"qs": "^6.11.2",
"responsive-storage": "^2.2.0",
"sortablejs": "^1.15.0",
"vue": "^3.3.4",
"vue-i18n": "^9.2.2",
"vue-router": "^4.2.2",
"vue-types": "^5.0.3"
"vue-types": "^5.0.4"
},
"devDependencies": {
"@commitlint/cli": "^17.6.5",
@ -76,9 +76,9 @@
"autoprefixer": "^10.4.14",
"cloc": "^2.11.0",
"cssnano": "^6.0.1",
"eslint": "^8.42.0",
"eslint": "^8.43.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.14.1",
"eslint-plugin-vue": "^9.15.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"picocolors": "^1.0.0",
@ -90,9 +90,9 @@
"pretty-quick": "^3.1.3",
"rimraf": "^5.0.1",
"rollup-plugin-visualizer": "^5.9.2",
"sass": "^1.63.3",
"sass": "^1.63.4",
"sass-loader": "^13.3.2",
"stylelint": "^15.7.0",
"stylelint": "^15.8.0",
"stylelint-config-html": "^1.1.0",
"stylelint-config-recess-order": "^4.2.0",
"stylelint-config-recommended": "^12.0.0",
@ -114,7 +114,7 @@
"vite-plugin-remove-console": "^2.1.1",
"vite-svg-loader": "^4.0.0",
"vue-eslint-parser": "^9.3.1",
"vue-tsc": "^1.6.5"
"vue-tsc": "^1.8.0"
},
"pnpm": {
"peerDependencyRules": {

503
pnpm-lock.yaml
File diff suppressed because it is too large
View File

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

Loading…
Cancel
Save