Commit 4236e9cb by vben

chore: update deps

1 parent 407534bd
registry = "https://registry.npmmirror.com"
# registry = "https://registry.npmmirror.com"
public-hoist-pattern[]=husky
public-hoist-pattern[]=eslint
public-hoist-pattern[]=prettier
public-hoist-pattern[]=prettier-plugin-tailwindcss
public-hoist-pattern[]=lint-staged
public-hoist-pattern[]=stylelint
public-hoist-pattern[]=*postcss*
public-hoist-pattern[]=@commitlint/*
public-hoist-pattern[]=czg
......
......@@ -7,7 +7,7 @@ VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
VITE_COMPRESS=none
# 是否开启 PWA
VITE_PWA=true
VITE_PWA=false
# vue-router 的模式
VITE_ROUTER_HISTORY=hash
......
......@@ -45,6 +45,6 @@
"dayjs": "^1.11.12",
"pinia": "2.1.7",
"vue": "^3.4.35",
"vue-router": "^4.4.1"
"vue-router": "^4.4.2"
}
}
......@@ -7,7 +7,7 @@ VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
VITE_COMPRESS=none
# 是否开启 PWA
VITE_PWA=true
VITE_PWA=false
# vue-router 的模式
VITE_ROUTER_HISTORY=hash
......
......@@ -45,7 +45,7 @@
"element-plus": "^2.7.8",
"pinia": "2.1.7",
"vue": "^3.4.35",
"vue-router": "^4.4.1"
"vue-router": "^4.4.2"
},
"devDependencies": {
"unplugin-element-plus": "^0.8.0"
......
......@@ -7,7 +7,7 @@ VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
VITE_COMPRESS=none
# 是否开启 PWA
VITE_PWA=true
VITE_PWA=false
# vue-router 的模式
VITE_ROUTER_HISTORY=hash
......
......@@ -44,6 +44,6 @@
"naive-ui": "^2.39.0",
"pinia": "2.1.7",
"vue": "^3.4.35",
"vue-router": "^4.4.1"
"vue-router": "^4.4.2"
}
}
......@@ -50,7 +50,7 @@
"eslint-plugin-unused-imports": "^4.0.1",
"eslint-plugin-vitest": "^0.5.4",
"eslint-plugin-vue": "^9.27.0",
"globals": "^15.8.0",
"globals": "^15.9.0",
"jsonc-eslint-parser": "^2.4.0",
"vue-eslint-parser": "^9.4.3"
}
......
......@@ -46,7 +46,7 @@
"tailwindcss": "^3.4.3"
},
"dependencies": {
"@iconify/json": "^2.2.232",
"@iconify/json": "^2.2.233",
"@iconify/tailwind": "^1.1.2",
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
"@tailwindcss/typography": "^0.5.13",
......
......@@ -45,7 +45,7 @@
"@vitejs/plugin-vue-jsx": "^4.0.0",
"dayjs": "^1.11.12",
"dotenv": "^16.4.5",
"rollup": "^4.19.1",
"rollup": "^4.19.2",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.77.8",
"vite": "^5.3.5",
......
......@@ -26,7 +26,7 @@
"type": "module",
"scripts": {
"bootstrap": "pnpm install",
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build",
"build": "cross-env TURBO_UI=1 NODE_OPTIONS=--max-old-space-size=8192 turbo build",
"build:analyze": "turbo build:analyze",
"build:docker": "./build-local-docker-image.sh",
"changeset": "pnpm exec changeset",
......@@ -78,6 +78,7 @@
"is-ci": "^3.0.1",
"jsdom": "^24.1.1",
"rimraf": "^6.0.1",
"tailwindcss": "^3.4.7",
"turbo": "^2.0.11",
"typescript": "^5.5.4",
"unbuild": "^2.0.0",
......
......@@ -39,6 +39,6 @@
},
"dependencies": {
"vue": "^3.4.35",
"vue-router": "^4.4.1"
"vue-router": "^4.4.2"
}
}
......@@ -29,7 +29,7 @@
"@vueuse/integrations": "^10.11.0",
"qrcode": "^1.5.3",
"vue": "^3.4.35",
"vue-router": "^4.4.1"
"vue-router": "^4.4.2"
},
"devDependencies": {
"@types/qrcode": "^1.5.5"
......
......@@ -26,7 +26,7 @@
"@vben/types": "workspace:*",
"@vben/utils": "workspace:*",
"vue": "^3.4.35",
"vue-router": "^4.4.1",
"vue-router": "^4.4.2",
"watermark-js-plus": "^1.5.2"
}
}
......@@ -34,6 +34,6 @@
"@vben/utils": "workspace:*",
"@vueuse/core": "^10.11.0",
"vue": "^3.4.35",
"vue-router": "^4.4.1"
"vue-router": "^4.4.2"
}
}
......@@ -25,6 +25,6 @@
"pinia": "2.1.7",
"pinia-plugin-persistedstate": "^3.2.1",
"vue": "^3.4.35",
"vue-router": "^4.4.1"
"vue-router": "^4.4.2"
}
}
......@@ -22,6 +22,6 @@
"dependencies": {
"@vben-core/typings": "workspace:*",
"vue": "^3.4.35",
"vue-router": "^4.4.1"
"vue-router": "^4.4.2"
}
}
......@@ -24,6 +24,6 @@
"dependencies": {
"@vben-core/shared": "workspace:*",
"@vben-core/typings": "workspace:*",
"vue-router": "^4.4.1"
"vue-router": "^4.4.2"
}
}
......@@ -73,11 +73,11 @@ authStore.setUserInfo(userInfo);
**实现原理**: 是通过接口动态生成路由表,且遵循一定的数据结构返回。前端根据需要处理该数据为可识别的结构,再通过 router.addRoutes 添加到路由实例,实现权限的动态生成。
**缺点**: 权限相对不自由,如果后台改动角色,前台也需要跟着改动。适合角色较固定的系统
**缺点**: 后端需要提供符合规范的数据结构,前端需要处理数据结构,适合权限较为复杂的系统。
### 步骤
- 确保当前模式为前端访问控制模式
- 确保当前模式为后端访问控制模式
调整对应应用目录下的`preferences.ts`,确保`accessMode='backend'`。
......
......@@ -4,7 +4,7 @@
## 登录认证过期
当接口返回401状态码时,框架会认为登录认证过期,登录超时会跳转到登录页或者打开登录弹窗。在应用目录下的`preferences.ts`可以配置:
当接口返回`401`状态码时,框架会认为登录认证过期,登录超时会跳转到登录页或者打开登录弹窗。在应用目录下的`preferences.ts`可以配置:
### 跳转登录页面
......
......@@ -16,7 +16,7 @@
- **最新技术栈**:使用 `Vue3`、`Vite`、`TypeScript` 等前端前沿技术开发。
- **国际化**:内置完善的国际化方案,支持多语言切换。
- **权限验证**:完善的权限验证方案,按钮级别权限控制。
- **多主题**:内置多种主题配置&黑暗某事,满足个性化需求。
- **多主题**:内置多种主题配置&黑暗模式,满足个性化需求。
- **动态菜单**:支持动态菜单,可以根据权限配置显示菜单。
- **Mock 数据**:基于 Nitro 的本地高性能 Mock 数据方案。
- **组件丰富**:提供了丰富的组件,可以满足大部分的业务需求。
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!