mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: add optional chaining to breadcrumbData length check
This commit is contained in:
parent
ccc8c06c51
commit
0ca2306039
|
|
@ -3,7 +3,7 @@
|
|||
{{ breadcrumbData[0]?.name }}
|
||||
</h2>
|
||||
<el-breadcrumb separator-icon="ArrowRight" style="line-height: normal" class="mt-4" v-else>
|
||||
<template v-if="breadcrumbData.length > 3">
|
||||
<template v-if="breadcrumbData?.length > 3">
|
||||
<el-breadcrumb-item>
|
||||
<el-button link @click="handleClick(breadcrumbData[0])" :title="breadcrumbData[0].name">
|
||||
<span class="ellipsis"> {{ breadcrumbData[0].name }}</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue