|
@@ -254,18 +254,24 @@ l16.229-16.229l16.229,16.229l42.867-42.867C115.034,45.228,109.133,42.189,102.956
|
|
|
active-text-color="#6262a2"
|
|
|
background-color="#36348e"
|
|
|
>
|
|
|
- <el-sub-menu :index="index" :title="item.text" v-for="(item , index) in menuData">
|
|
|
+ <el-sub-menu
|
|
|
+ :index="index"
|
|
|
+ :title="item.text"
|
|
|
+ v-for="(item, index) in menuData"
|
|
|
+ >
|
|
|
<template #title>
|
|
|
- <router-link :to="item.path">
|
|
|
- <el-icon>
|
|
|
- <SvgIcon :svgid="item.icon" />
|
|
|
- </el-icon>
|
|
|
- </router-link>
|
|
|
+ <router-link :to="item.path">
|
|
|
+ <el-icon>
|
|
|
+ <SvgIcon :svgid="item.icon" />
|
|
|
+ </el-icon>
|
|
|
+ </router-link>
|
|
|
</template>
|
|
|
- <el-menu-item-group v-for="(menu , idx) in item.children" :index="idx">
|
|
|
- <router-link :to="menu.path">
|
|
|
- <el-menu-item :index="index+'-'+idx">{{menu.text}}</el-menu-item>
|
|
|
- </router-link>
|
|
|
+ <el-menu-item-group v-for="(menu, idx) in item.children" :index="idx">
|
|
|
+ <router-link :to="menu.path">
|
|
|
+ <el-menu-item :index="index + '-' + idx">{{
|
|
|
+ menu.text
|
|
|
+ }}</el-menu-item>
|
|
|
+ </router-link>
|
|
|
</el-menu-item-group>
|
|
|
</el-sub-menu>
|
|
|
<!-- <el-sub-menu index="2" title="菜单2">
|
|
@@ -333,7 +339,7 @@ export default {
|
|
|
isLogined: true,
|
|
|
showSisView: false,
|
|
|
memuCloseTimeout: null,
|
|
|
- menuData:[]
|
|
|
+ menuData: [],
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -399,9 +405,8 @@ export default {
|
|
|
this.showSisView = res.fullPath === "/sisView";
|
|
|
},
|
|
|
"$store.state.menuData"(res) {
|
|
|
- console.log(res)
|
|
|
- this.menuData = res;
|
|
|
- },
|
|
|
+ this.menuData = res;
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|