fix: 修复顶级路由中面包屑多了一个‘/’的问题

This commit is contained in:
“青菜白玉汤”
2022-08-17 17:01:05 +08:00
parent 0c8bb030de
commit 874fd3437d

View File

@@ -43,7 +43,7 @@
<!-- 面包屑 -->
<n-breadcrumb v-if="crumbsSetting.show">
<template v-for="routeItem in breadcrumbList" :key="routeItem.name">
<n-breadcrumb-item>
<n-breadcrumb-item :separator="routeItem.children.length == 1 ? '' : '/' ">
<n-dropdown
v-if="routeItem.children.length"
:options="routeItem.children"