This commit is contained in:
zhutianqi
2021-11-18 16:55:34 +08:00
parent 05c832c2fb
commit f193baa948
+6
View File
@@ -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)
},