refactor: adjust routes

This commit is contained in:
张传龙
2022-08-08 15:36:43 +08:00
parent ef3aaa5be5
commit 0bb2a904e7
7 changed files with 19 additions and 16 deletions

View File

@@ -1,6 +1,10 @@
<template>
<n-breadcrumb>
<n-breadcrumb-item v-for="item in route.matched" :key="item.path" @click="handleBreadClick(item.path)">
<n-breadcrumb-item
v-for="item in route.matched.filter((item) => !!item.meta?.title)"
:key="item.path"
@click="handleBreadClick(item.path)"
>
<component :is="renderIcon(item.meta?.icon, { size: 16 })" v-if="item.meta?.icon" />
{{ item.meta.title }}
</n-breadcrumb-item>