Skip to content

Commit

Permalink
fix: 修复路径重复拼接的问题 (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
timi137137 authored and uyarn committed Sep 27, 2022
1 parent 07f3059 commit fcdebd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/components/MenuContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const getMenuList = (list: MenuRoute[], basePath?: string): MenuRoute[] => {
});
return list
.map((item) => {
const path = basePath ? `${basePath}/${item.path}` : item.path;
const path = basePath && !item.path.includes(basePath) ? `${basePath}/${item.path}` : item.path;
return {
path,
title: item.meta?.title,
Expand Down

0 comments on commit fcdebd2

Please sign in to comment.