diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index c172638..ccf7e6e 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -10,19 +10,36 @@ - - - - + diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index ca6c24d..db71d69 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -3,6 +3,7 @@ 0) { @@ -105,6 +107,7 @@ export default { let thiss = this; //console.log(this.$route); // console.log(this.$store); + mirlist().then(response => { let datamain = response.data; this.routes[1].children = this.SplicingMenuTree(datamain.data.menus); diff --git a/src/layout/components/Sidebar/leftMenusData.js b/src/layout/components/Sidebar/leftMenusData.js index ca33673..6ca9766 100644 --- a/src/layout/components/Sidebar/leftMenusData.js +++ b/src/layout/components/Sidebar/leftMenusData.js @@ -35,8 +35,9 @@ var menusdata = [ }, { - id: '0', + id: '1', path: '/filemange', + class: 'file', meta: { title: '文件管理', icon: 'dashboard' }, children:[] },