refactor: 合并档案与实物码管理入口

This commit is contained in:
Nixevol
2026-07-03 04:05:58 +08:00
parent 96552857f6
commit 8d8bf36d08
12 changed files with 610 additions and 561 deletions
+1 -3
View File
@@ -59,7 +59,6 @@ import {
GridOutline,
DocumentTextOutline,
ImagesOutline,
QrCodeOutline,
CubeOutline,
ListOutline,
PeopleOutline,
@@ -92,7 +91,6 @@ const menuOptions = computed<MenuOption[]>(() => {
{ label: t('menu.dashboard'), key: 'dashboard', icon: renderIcon(GridOutline) },
{ label: t('menu.templates'), key: 'templates', icon: renderIcon(DocumentTextOutline) },
{ label: t('menu.artworks'), key: 'artworks', icon: renderIcon(ImagesOutline) },
{ label: t('menu.traceCodes'), key: 'traceCodes', icon: renderIcon(QrCodeOutline) },
{ label: t('menu.outbound'), key: 'outbound', icon: renderIcon(CubeOutline) },
{ label: t('menu.audit'), key: 'audit', icon: renderIcon(ShieldCheckmarkOutline), auditOnly: true },
{ label: t('menu.queryLogs'), key: 'queryLogs', icon: renderIcon(ListOutline) },
@@ -104,7 +102,7 @@ const menuOptions = computed<MenuOption[]>(() => {
);
});
const activeKey = computed(() => (route.name === 'artwork-detail' ? 'artworks' : (route.name as string)));
const activeKey = computed(() => (['artwork-detail', 'traceCodes'].includes(route.name as string) ? 'artworks' : (route.name as string)));
const currentTitle = computed(() => (activeKey.value ? t(`menu.${activeKey.value}`) : ''));
const userOptions = computed(() => [