Commit 8cb2c928 by fengzhaoyu

角色修改判断

parents c32bc2e6 54e80fd3
......@@ -47,7 +47,7 @@ export default {
created () {
let that = this
this.title = this.$route.meta.title ? this.$route.meta.title.split('/') : ''
this.defaultSelectedKeys = this.$route.matched[2].name ? this.$route.matched[2].name : ''
this.defaultSelectedKeys = this.$route.matched[2] && this.$route.matched[2].name ? this.$route.matched[2].name : ''
let data = {
item: 'e-card'
}
......@@ -60,7 +60,7 @@ export default {
watch: {
$route (to, from) {
this.title = to.meta.title.split('/')
this.defaultSelectedKeys = this.$route.matched[1].name ? this.$route.matched[1].name : ''
this.defaultSelectedKeys = this.$route.matched[1] && this.$route.matched[1].name ? this.$route.matched[1].name : ''
}
},
computed: {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment