refactor(permission): 统一权限检查并移除重复代码
- 移除 material-list 页面中重复的 usePermission 导入和调用 - 权限检查完全由 ListItemActions 组件内部处理 - 简化 onView 函数直接调用 handleFileClick - 添加 ListItemActions 组件 README 文档 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Showing
9 changed files
with
1017 additions
and
40 deletions
src/composables/usePermission.js
0 → 100644
src/composables/usePermission.test.js
0 → 100644
src/config/permissions.js
0 → 100644
vitest.config.js
0 → 100644
-
Please register or login to post a comment