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