mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 14:16:31 +08:00
fix: 修复路径重复拼接的问题 (#319)
This commit is contained in:
parent
07f30597d0
commit
fcdebd2d02
|
@ -57,7 +57,7 @@ const getMenuList = (list: MenuRoute[], basePath?: string): MenuRoute[] => {
|
||||||
});
|
});
|
||||||
return list
|
return list
|
||||||
.map((item) => {
|
.map((item) => {
|
||||||
const path = basePath ? `${basePath}/${item.path}` : item.path;
|
const path = basePath && !item.path.includes(basePath) ? `${basePath}/${item.path}` : item.path;
|
||||||
return {
|
return {
|
||||||
path,
|
path,
|
||||||
title: item.meta?.title,
|
title: item.meta?.title,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user