getBreadcrumb () {
console.log(this.$route.matched)
debugger
this.levelList = this.$route.matched.filter(item => item.meta && item.meta.title)
},
handleLink (item, levelList) {
const firstRouter = this.$router.options.routes.find(x => x.name === levelList[0].name)
let path = ''
let secondRouter = ''
let threeRouter = ''
if (!item.parent) {
path = firstRouter.path + '/' + firstRouter.children[0].path + '/' + firstRouter.children[0].children[0].path + '/' + firstRouter.children[0].children[0].children[0].path
} else if (!item.parent.parent) {
secondRouter = firstRouter.children.find(x => firstRouter.path + '/' + x.path === item.path)
path = item.path + '/' + secondRouter.children[0].path + '/' + secondRouter.children[0].children[0].path
} else if (!item.parent.parent.parent) {
threeRouter = firstRouter.children.find(x => firstRouter.path + '/' + x.path === item.path.split('/').slice(0, 3).join('/'))
path = item.path + '/' + threeRouter.children[0].children[0].path
}
if (this.$route.path === path) return
this.$router.push(path)
},