This commit is contained in:
李志鹏
2026-04-13 14:49:24 +08:00
parent 88f3bed2c1
commit 54cc7bd359

View File

@@ -13,7 +13,12 @@
:class="{
last: i === breadcrumbs.length - 1
}"
@click="() => router.push({ name: v.name })"
@click="
() => {
const index = -(breadcrumbs.length - i - 1)
if (index < 0) router.go(index)
}
"
>{{ v.title }}</span
>
<span class="icon" v-show="i < breadcrumbs.length - 1">