Skip to content

Commit 920ae5a

Browse files
committed
fix: if/else keys
1 parent f128f59 commit 920ae5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/AsideMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
<template v-for="(menuGroup, index) in menu">
1919
<p
2020
v-if="typeof menuGroup === 'string'"
21-
:key="index"
21+
:key="`label-${index}`"
2222
class="menu-label"
2323
>
2424
{{ menuGroup }}
2525
</p>
2626
<aside-menu-list
2727
v-else
28-
:key="index"
28+
:key="`menu-${index}`"
2929
:menu="menuGroup"
3030
@menu-click="menuClick"
3131
/>

0 commit comments

Comments
 (0)