- 扩展 auth/roles.ts 添加13个新角色和40+权限定义 - 创建 services/permission.ts 权限API服务 - 创建 composables/usePermission.ts 权限组合函数 - 创建 router/permissionGuard.ts 路由权限守卫 - 更新路由配置使用新角色系统 - 更新 App.vue, LoginView, UsersView, PermissionsView 等使用新角色 - 更新 DemoDataService 使用新角色 - 前端编译验证通过
29 lines
615 B
JSON
29 lines
615 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(mvn *)",
|
|
"Bash(git *)",
|
|
"Bash(rm *)",
|
|
"Bash(mkdir *)",
|
|
"Bash(touch *)",
|
|
"Bash(cat *)",
|
|
"Bash(ls *)",
|
|
"Bash(find *)",
|
|
"Bash(grep *)",
|
|
"Bash(sed *)",
|
|
"Bash(java *)",
|
|
"Bash(python3 *)",
|
|
"Write",
|
|
"Edit",
|
|
"Read",
|
|
"Glob",
|
|
"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": []
|
|
},
|
|
"autoApprovedAllowDangerous": true
|
|
}
|