| | |
| | | export default { |
| | | data(){ |
| | | return{ |
| | | list:[] |
| | | list:[], |
| | | subTitle1: null, |
| | | subTitle2 :null, |
| | | } |
| | | }, |
| | | setup(){ |
| | |
| | | watch:{ |
| | | $route(to,from){ |
| | | this.list = to.matched |
| | | // this.subTitle1 = this.list[1] |
| | | // this.subTitle2 = this.list[2] |
| | | } |
| | | }, |
| | | mounted (){ |
| | | this.list = this.$route.matched |
| | | // this.subTitle1 = this.list[1] |
| | | // this.subTitle2 = this.list[2] |
| | | }, |
| | | methods:{ |
| | | } |
| | |
| | | <router-link :to="item.path">{{ item.meta.title }}</router-link> |
| | | </el-breadcrumb-item> |
| | | </el-breadcrumb> |
| | | |
| | | <!-- <el-breadcrumb :separator-icon="ArrowRight"> |
| | | <el-breadcrumb-item> {{subTitle1.meta.title}} </el-breadcrumb-item> |
| | | <el-breadcrumb-item> <router-link :to="item.path">{{subTitle2.meta.title}}</router-link></el-breadcrumb-item> --> |
| | | |
| | | |
| | | |
| | | |
| | | </template> |
| | | <style scoped> |
| | | .el-breadcrumb__inner a { |