feat(frontend): 完善前端权限系统
- 扩展 auth/roles.ts 添加13个新角色和40+权限定义 - 创建 services/permission.ts 权限API服务 - 创建 composables/usePermission.ts 权限组合函数 - 创建 router/permissionGuard.ts 路由权限守卫 - 更新路由配置使用新角色系统 - 更新 App.vue, LoginView, UsersView, PermissionsView 等使用新角色 - 更新 DemoDataService 使用新角色 - 前端编译验证通过
This commit is contained in:
@@ -17,7 +17,10 @@
|
||||
"Edit",
|
||||
"Read",
|
||||
"Glob",
|
||||
"Grep"
|
||||
"Grep",
|
||||
"Bash(cd /home/long/project/蚊子/frontend/admin && npm run build 2>&1 | head -30)",
|
||||
"Bash(npm run build 2>&1 | head -40)",
|
||||
"Bash(npm run build 2>&1 | head -50)"
|
||||
],
|
||||
"deny": []
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user