refactor: 合并档案与实物码管理入口
This commit is contained in:
@@ -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(() => [
|
||||
|
||||
Reference in New Issue
Block a user