|
|
@ -33,11 +33,12 @@ export default { |
|
|
|
components: { SidebarItem, Logo }, |
|
|
|
components: { SidebarItem, Logo }, |
|
|
|
created: function () { |
|
|
|
created: function () { |
|
|
|
this.getmunusdata(); |
|
|
|
this.getmunusdata(); |
|
|
|
this.menusdatas = 66 |
|
|
|
//this.menusdatas = '' |
|
|
|
|
|
|
|
var fe = 10; |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
//routes:this.menusdatas |
|
|
|
routes:menusdata |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
@ -88,10 +89,10 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
arrMenus.push(newMenu); |
|
|
|
arrMenus.push(newMenu); |
|
|
|
console.log(arrMenus); |
|
|
|
//console.log(arrMenus); |
|
|
|
return arrMenus; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
return arrMenus; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getmunusdata() { |
|
|
|
getmunusdata() { |
|
|
@ -104,8 +105,9 @@ export default { |
|
|
|
//routesData(datamain.data.menus); |
|
|
|
//routesData(datamain.data.menus); |
|
|
|
//console.log(response); |
|
|
|
//console.log(response); |
|
|
|
console.log(this.menusdatas); |
|
|
|
console.log(this.menusdatas); |
|
|
|
this.menusdatas = this.SplicingMenuTree(datamain.data.menus); |
|
|
|
menusdata[0].children = this.SplicingMenuTree(datamain.data.menus); |
|
|
|
console.log(this.menusdatas); |
|
|
|
//menusdatas[0] = addmunst |
|
|
|
|
|
|
|
console.log(menusdata); |
|
|
|
//this.routes = menusdata |
|
|
|
//this.routes = menusdata |
|
|
|
//console.log(menusdata); |
|
|
|
//console.log(menusdata); |
|
|
|
|
|
|
|
|
|
|
|