@@ -142,7 +142,7 @@ export default defineComponent({
};
// 循环引用到获取一级菜单路由
const mathCurrentMenu = (menuList: Array<any>, path: string): any => {
- const res = menuList.find((item: any) => item.path === path);
+ const res = menuList.find((item: any) => (item.path.includes("/:") ? path.includes(item.path.split("/:")[0]) : item.path === path));
if (res) {
return res;
} else {