标题优化

This commit is contained in:
‘huanghaiixia’
2026-01-30 15:55:59 +08:00
parent 9643a693a2
commit 2fcd09b943
14 changed files with 155 additions and 66 deletions

View File

@ -40,7 +40,7 @@
const tabItem = props.tabItem as any;
const meta = tabItem.meta || {};
const metaTitle = typeof meta?.title == 'function' ? meta.title(tabItem) : meta?.title;
return tabItem.tabTitle || (meta && t(metaTitle as string));
return (meta && t(metaTitle as string)) || tabItem.tabTitle;
});
const getIsTabs = computed(() => !props.isExtra);