commit
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
active-text-color="#000"
|
active-text-color="#000"
|
||||||
router
|
router
|
||||||
:collapse="isCollapse"
|
:collapse="isCollapse"
|
||||||
|
@select="handleSelect"
|
||||||
>
|
>
|
||||||
<template v-for="(item, index) in navMenuList">
|
<template v-for="(item, index) in navMenuList">
|
||||||
<el-submenu
|
<el-submenu
|
||||||
@@ -473,6 +474,11 @@ export default {
|
|||||||
mounted () {
|
mounted () {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleSelect (key, keyPath) {
|
||||||
|
if (this.$route.path === key) {
|
||||||
|
this.$router.go(0)
|
||||||
|
}
|
||||||
|
},
|
||||||
handleToggleSideBar () {
|
handleToggleSideBar () {
|
||||||
this.toggleSideBar(!this.isCollapse)
|
this.toggleSideBar(!this.isCollapse)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user