fix: 企业微信登录提示和隐藏立账凭证页面

This commit is contained in:
sophie committed 2026-08-12 09:53:02 +08:00
1 parent 4587b56900
commit 4fa947c8d7
15 files changed
+20 -748

No files matched your search

@@ -35,6 +35,10 @@ 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 || ''));
}