|
@@ -6,7 +6,11 @@
|
|
|
<span :class="`mdi pr-5 mdi-menu-${collapse ? 'close' : 'open'}`" @click="handleChange"></span>
|
|
|
<div class="layout-body-header-main py-5">
|
|
|
<el-breadcrumb separator="/" separator-class="el-icon-arrow-right" class="layout-body-header-breadcrumb">
|
|
|
- <el-breadcrumb-item v-for="(breadcrumb, index) in breadcrumbs" :key="index" :to="{ path: breadcrumb.path }">{{ breadcrumb.name }}</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item
|
|
|
+ v-for="(breadcrumb, index) in breadcrumbs"
|
|
|
+ :key="index"
|
|
|
+ :to="breadcrumb.disable ? undefined : { path: breadcrumb.path }"
|
|
|
+ >{{ breadcrumb.name }} {{ breadcrumb.type }}</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
|
</div>
|
|
|
<div class="layout-body-header-right">
|
|
@@ -76,7 +80,8 @@ export default {
|
|
|
return this.$route.matched.map(e => {
|
|
|
return {
|
|
|
path: e.path,
|
|
|
- name: e.meta.title
|
|
|
+ name: e.meta.title,
|
|
|
+ disable: e.meta.type === 0
|
|
|
}
|
|
|
})
|
|
|
}
|