fix: 解决冲突
This commit is contained in:
1 parent
f09e7d27a6
commit
cbc3cb959f
3 files changed
+40
-132
No files matched your search
@@ -39,10 +39,6 @@ const secondaryLinkItems = [
|
||||
{ path: WORKSPACE_PATHS.updates, labelKey: 'workspace.nav.updates', icon: Megaphone, match: ['workspace-updates'] },
|
||||
] as const;
|
||||
|
||||
const visibleLinkItems = computed(() => linkItems.filter((item) => (
|
||||
item.match[0] !== 'workspace-accounting-voucher-check' || String(ws.currentUser?.role || '').toLowerCase() === 'admin'
|
||||
)));
|
||||
|
||||
function isActive(match: readonly string[]) {
|
||||
return match.includes(String(route.name || ''));
|
||||
}
|
||||
|
||||
@@ -189,9 +189,6 @@ export function useWorkspaceNavigation(deps: WorkspaceDeps, options: NavigationO
|
||||
showKnowledgeBaseAccessDenied();
|
||||
await router.replace(WORKSPACE_PATHS.applications);
|
||||
}
|
||||
if (name === 'workspace-accounting-voucher-check' && !hasKnowledgeBaseAccess.value) {
|
||||
await router.replace(WORKSPACE_PATHS.applications);
|
||||
}
|
||||
if (name === 'workspace-feedback') {
|
||||
showGeneralFeedbackDialog.value = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user