Skip to content

Commit

Permalink
fix: 消除面包屑组件的控制台警告(同步 GiDemo 更新)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Dec 12, 2024
1 parent f292db5 commit 53fd8a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Breadcrumb/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<a-breadcrumb>
<transition-group name="breadcrumb">
<div v-for="(item, index) in breadcrumbList" :key="item.meta.title">
<a-breadcrumb-item>
<a-breadcrumb-item v-bind="attrs">
<span
v-if="item.redirect === 'noRedirect' || item.redirect === '' || index === breadcrumbList.length - 1"
class="gi_line_1"
Expand All @@ -23,6 +23,7 @@ import { useRouteStore } from '@/stores'
const route = useRoute()
const router = useRouter()
const { routes } = useRouteStore()
const attrs = useAttrs()
let home: RouteLocationMatched | null = null
const getHome = () => {
Expand Down

0 comments on commit 53fd8a4

Please sign in to comment.