|
|
@ -3,6 +3,7 @@ |
|
|
|
<logo v-if="showLogo" :collapse="isCollapse" /> |
|
|
|
<logo v-if="showLogo" :collapse="isCollapse" /> |
|
|
|
<el-scrollbar wrap-class="scrollbar-wrapper"> |
|
|
|
<el-scrollbar wrap-class="scrollbar-wrapper"> |
|
|
|
<el-menu |
|
|
|
<el-menu |
|
|
|
|
|
|
|
:router="true" |
|
|
|
:default-active="activeMenu" |
|
|
|
:default-active="activeMenu" |
|
|
|
:collapse="isCollapse" |
|
|
|
:collapse="isCollapse" |
|
|
|
:background-color="variables.menuBg" |
|
|
|
:background-color="variables.menuBg" |
|
|
@ -90,6 +91,7 @@ export default { |
|
|
|
newMenu = { |
|
|
|
newMenu = { |
|
|
|
path: '/subfile?id='+item.id, |
|
|
|
path: '/subfile?id='+item.id, |
|
|
|
meta: { title: item.directory, icon: 'dashboard' }, |
|
|
|
meta: { title: item.directory, icon: 'dashboard' }, |
|
|
|
|
|
|
|
class: 'file', |
|
|
|
children:[] |
|
|
|
children:[] |
|
|
|
} |
|
|
|
} |
|
|
|
if (item.directories && item.directories.length > 0) { |
|
|
|
if (item.directories && item.directories.length > 0) { |
|
|
@ -105,6 +107,7 @@ export default { |
|
|
|
let thiss = this; |
|
|
|
let thiss = this; |
|
|
|
//console.log(this.$route); |
|
|
|
//console.log(this.$route); |
|
|
|
// console.log(this.$store); |
|
|
|
// console.log(this.$store); |
|
|
|
|
|
|
|
|
|
|
|
mirlist().then(response => { |
|
|
|
mirlist().then(response => { |
|
|
|
let datamain = response.data; |
|
|
|
let datamain = response.data; |
|
|
|
this.routes[1].children = this.SplicingMenuTree(datamain.data.menus); |
|
|
|
this.routes[1].children = this.SplicingMenuTree(datamain.data.menus); |
|
|
|