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" 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)
}, },