fix(VPSidebarItem): use depth and index as the key

pull/3621/head
Shyam-Chen 2 years ago
parent 75bed4f836
commit 9a479f246e

@ -97,8 +97,8 @@ function onCaretClick() {
<div v-if="item.items && item.items.length" class="items">
<template v-if="depth < 5">
<VPSidebarItem
v-for="i in item.items"
:key="i.text"
v-for="(i, j) in item.items"
:key="`${depth}-${j}`"
:item="i"
:depth="depth + 1"
/>

Loading…
Cancel
Save