未验证 提交 b11df08a 编写于 作者: W wjc112233 提交者: GitHub

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

Co-authored-by: Nwjc <7098544231@qq.com>
上级 6e391af3
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册