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