|
@@ -29,15 +29,11 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleSelected(item) {
|
|
|
- //this.$router.push({name: item.key})
|
|
|
if (item.key=='nav') {
|
|
|
this.$router.push({name: 'nav'})
|
|
|
} else {
|
|
|
- console.log(item.key)
|
|
|
- console.log(item && item.key!='')
|
|
|
if (item && item.key!=='') {
|
|
|
let obj = this.menuList[item.key]
|
|
|
- console.log(obj)
|
|
|
this.$router.push({path: obj.router})
|
|
|
} else {
|
|
|
this.$router.push({name: 'empty'})
|