feat(access): 实现基于用户角色的路由权限控制

添加权限检查功能,包括用户角色定义、路由元信息扩展和权限验证逻辑
重构路由配置和用户存储,支持动态菜单过滤
更新构建配置以支持类型声明生成
This commit is contained in:
2025-11-15 20:11:05 +08:00
parent a98eae385f
commit 8aa1f313af
10 changed files with 144 additions and 24 deletions

View File

@@ -9,7 +9,9 @@
"build": "vue-tsc -b && vite build --mode dev",
"build:prod": "vue-tsc -b && vite build --mode prod",
"preview": "vite preview",
"lint": "eslint . --ext .ts,.vue"
"lint": "eslint . --ext .ts,.vue",
"type-check": "vue-tsc --noEmit",
"build:types": "vue-tsc --declaration --emitDeclarationOnly"
},
"dependencies": {
"@arco-design/web-vue": "^2.57.0",