feat(web): update composables and utils

- useAppShell.js: update app shell composable
- useNavigation.js: update navigation composable
- utils/accessControl.js: update access control utility
This commit is contained in:
caoxiaozhu
2026-05-14 02:59:54 +00:00
parent 736cc6b52b
commit b9cb6d9253
3 changed files with 15 additions and 71 deletions

View File

@@ -1,16 +1,15 @@
export const DEFAULT_APP_VIEW_ORDER = [
'overview',
'workbench',
'requests',
'approval',
'chat',
'policies',
'audit',
'employees',
'settings'
]
const ALWAYS_VISIBLE_VIEWS = new Set(['workbench', 'requests', 'chat', 'policies'])
export const DEFAULT_APP_VIEW_ORDER = [
'overview',
'workbench',
'requests',
'approval',
'policies',
'audit',
'employees',
'settings'
]
const ALWAYS_VISIBLE_VIEWS = new Set(['workbench', 'requests', 'policies'])
const VIEW_ROLE_RULES = {
overview: ['finance', 'executive'],
approval: ['approver'],