Browse Source

修改面包屑不显示的问题

niuheng 2 years ago
parent
commit
b9cd0fca0c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/store/index.js

+ 3 - 3
src/store/index.js

@@ -59,11 +59,11 @@ export default new Vuex.Store({
             function find(menus) {
                 for (let i = 0; i < menus.length; i++) {
                     let currMenu = menus[i];
-                    if (currMenu.url == breadcrumb.to) {
+                    if (currMenu.path == breadcrumb.to) {
                         return currMenu;
                     }
-                    if (currMenu.child && currMenu.child.length > 0) {
-                        let findMenu = find(currMenu.child);
+                    if (currMenu.children && currMenu.children.length > 0) {
+                        let findMenu = find(currMenu.children);
                         if (findMenu) {
                             newBreadcrumbs.push({
                                 label: findMenu.name,