fix: 修复SimpleSubMenu组件被意外地重新渲染的bug (#2106) (#2108)

Co-authored-by: wjc <7098544231@qq.com>
This commit is contained in:
wjc112233 2022-07-23 19:26:33 +08:00 committed by GitHub
parent 6e391af3fe
commit b11df08aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,10 @@
</span>
<SimpleMenuTag :item="item" :collapseParent="!!collapse && !!parent" />
</template>
<template v-for="childrenItem in item.children || []" :key="childrenItem.path">
<template
v-for="childrenItem in item.children || []"
:key="childrenItem.paramPath || childrenItem.path"
>
<SimpleSubMenu v-bind="$props" :item="childrenItem" :parent="false" />
</template>
</SubMenu>