Skip to content

Commit 6f98a79

Browse files
authored
fix: 修复路径重复拼接的问题 (#319)
1 parent 33fa473 commit 6f98a79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/layouts/components/MenuContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const getMenuList = (list: MenuRoute[], basePath?: string): MenuRoute[] => {
5757
});
5858
return list
5959
.map((item) => {
60-
const path = basePath ? `${basePath}/${item.path}` : item.path;
60+
const path = basePath && !item.path.includes(basePath) ? `${basePath}/${item.path}` : item.path;
6161
return {
6262
path,
6363
title: item.meta?.title,

0 commit comments

Comments
 (0)