Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
elsiosanchez authored Feb 24, 2022
1 parent e1e4d28 commit c07ae7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Breadcrumb/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</el-breadcrumb-item>
<el-breadcrumb-item key="1">
<el-popover placement="bottom" trigger="hover" class="breadcrumb-popover">
<el-dropdown-item v-for="(item, index) in dropdownList" :key="index" @click.native="handleLink(item)">
<el-dropdown-item v-for="(item, index) in dropdownList" :key="index" @click.native="handleLink(item, index)">
{{ generateTitle(item.meta.title) }}
</el-dropdown-item>
<i slot="reference" class="el-icon-more" />
Expand Down Expand Up @@ -93,8 +93,8 @@ export default {
const toPath = compile(path)
return toPath(params)
},
handleLink(item) {
if (this.$route.name !== item.name && !this.isEmptyValue(item.meta.alwaysShow)) {
handleLink(item, index) {
if (this.$route.name !== item.name && index > 0 || index === undefined && item.path === '/dashboard') {
this.$router.push({
name: item.name,
params: {
Expand Down

0 comments on commit c07ae7a

Please sign in to comment.