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"> <div v-if="item.items && item.items.length" class="items">
<template v-if="depth < 5"> <template v-if="depth < 5">
<VPSidebarItem <VPSidebarItem
v-for="i in item.items" v-for="(i, j) in item.items"
:key="i.text" :key="`${depth}-${j}`"
:item="i" :item="i"
:depth="depth + 1" :depth="depth + 1"
/> />

Loading…
Cancel
Save