fix: 修复面包屑只有一个title的时候左边会多出一个空span的问题

This commit is contained in:
“青菜白玉汤”
2022-08-19 17:05:06 +08:00
parent 874fd3437d
commit bc2d2b4e94

View File

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