dev_zt
wangqiujuan0808 2023-11-30 18:16:13 +08:00
parent 9ed8b251cb
commit 2d49a12157
3 changed files with 2 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<template>
<ul>
<li v-for="(item,i) in menus" :class="activeI === i? 'active-menu' : ''" @click="activeI = i, go(item.val)"> {{ item.name }} </li>
<li v-for="(item,i) in menus" :class="activeI === i? 'active-menu' : ''" @click="activeI = i, go(item.val)" :key="i"> {{ item.name }} </li>
</ul>
</template>

View File

@ -49,12 +49,6 @@
{{ item.value }}
</td>
</tr>
<tr>
<td>数值</td>
<td v-for="(item, index) in tableHeader" :key="index">
{{ item.value }}
</td>
</tr>
</tbody>
</table>
</div>

View File

@ -14,7 +14,7 @@
:router="true"
:default-active="currentPath"
>
<el-menu-item :index="list.index" v-for="(list, i) of state.menuList"
<el-menu-item :index="list.index" v-for="(list, i) of state.menuList" :key="i"
><i class="el-icon-data-line" />{{list.name}}</el-menu-item
>
</el-menu>