feat: add tabs demo

This commit is contained in:
vben
2024-07-20 09:36:10 +08:00
parent 1fbf69e6eb
commit 30d4057216
10 changed files with 48 additions and 40 deletions

View File

@@ -49,7 +49,7 @@ const tabsView = computed((): TabConfig[] => {
: true,
icon: tab.meta.icon as string,
key: tab.fullPath || tab.path,
title: (tab.meta?.title || tab.name) as string,
title: (tab.meta?.newTabTitle || tab.meta?.title || tab.name) as string,
};
});
});

View File

@@ -50,7 +50,7 @@ const tabsView = computed((): TabConfig[] => {
: true,
icon: tab.meta.icon as string,
key: tab.fullPath || tab.path,
title: (tab.meta?.title || tab.name) as string,
title: (tab.meta?.newTabTitle || tab.meta?.title || tab.name) as string,
};
});
});