add breadcrumb
This commit is contained in:
1 parent
1ff6d27ab8
commit
fc378d4903
10 files changed
+52
-14
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<el-breadcrumb separator="/">
|
||||
<el-breadcrumb-item :to="{ path: '/' }">{{ $t('common.nav.home') }}</el-breadcrumb-item>
|
||||
<el-breadcrumb-item v-for="item in items" :to="{ name: item.name }">{{ item.meta.title }}</el-breadcrumb-item>
|
||||
</el-breadcrumb>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
items: this.$route.matched
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log('this', this.$route);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in new issue
Block a user