|
@@ -258,6 +258,7 @@ l16.229-16.229l16.229,16.229l42.867-42.867C115.034,45.228,109.133,42.189,102.956
|
|
|
:index="index"
|
|
|
:title="item.text"
|
|
|
v-for="(item, index) in menuData"
|
|
|
+ :key="index"
|
|
|
>
|
|
|
<template #title>
|
|
|
<router-link :to="item.path">
|
|
@@ -266,33 +267,18 @@ l16.229-16.229l16.229,16.229l42.867-42.867C115.034,45.228,109.133,42.189,102.956
|
|
|
</el-icon>
|
|
|
</router-link>
|
|
|
</template>
|
|
|
- <el-menu-item-group v-for="(menu, idx) in item.children" :index="idx">
|
|
|
+ <el-menu-item-group
|
|
|
+ v-for="(menu, idx) in item.children"
|
|
|
+ :index="idx"
|
|
|
+ :key="idx"
|
|
|
+ >
|
|
|
<router-link :to="menu.path">
|
|
|
- <el-menu-item :index="index + '-' + idx">{{
|
|
|
- menu.text
|
|
|
- }}</el-menu-item>
|
|
|
+ <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">
|
|
|
- <template #title>
|
|
|
- <el-icon>
|
|
|
- <SvgIcon svgid="svg-matrix" />
|
|
|
- </el-icon>
|
|
|
- </template>
|
|
|
- <el-menu-item-group>
|
|
|
- <template #title><span>Group One</span></template>
|
|
|
- <el-menu-item index="2-1">item one</el-menu-item>
|
|
|
- <el-menu-item index="2-2">item two</el-menu-item>
|
|
|
- </el-menu-item-group>
|
|
|
- <el-menu-item-group title="Group Two">
|
|
|
- <el-menu-item index="2-3">item three</el-menu-item>
|
|
|
- </el-menu-item-group>
|
|
|
- <el-sub-menu index="2-4">
|
|
|
- <template #title><span>item four</span></template>
|
|
|
- <el-menu-item index="2-4-1">item one</el-menu-item>
|
|
|
- </el-sub-menu>
|
|
|
- </el-sub-menu> -->
|
|
|
</el-menu>
|
|
|
</div>
|
|
|
<div class="main-body">
|
|
@@ -398,6 +384,10 @@ export default {
|
|
|
login(params) {
|
|
|
if (params.username && params.password) this.isLogined = true;
|
|
|
},
|
|
|
+ menuOpen(a, b) {
|
|
|
+ console.log(111, a);
|
|
|
+ console.log(222, b);
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
watch: {
|