Browse Source

Merge branch 'dev' of http://git.mydig.net/Sagoo-Cloud/sagoo-admin-ui into dev

vera_min 1 tháng trước cách đây
mục cha
commit
be422630eb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/layout/component/columnsAside.vue

+ 1 - 1
src/layout/component/columnsAside.vue

@@ -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 {