Commit ed331a2c by 潘际乾

SideMenu fix

parent 45724bb4
......@@ -32,7 +32,6 @@ export default {
data: function() {
return {
openFlgArr: [],
openFlgArrCopy: [],
menuOpen: true,
menuList: [
// { inifrm: "0", ininam: "公共夹", pntmiu: "" },
......@@ -109,6 +108,15 @@ export default {
return this.$route.path;
},
},
watch: {
$route: function () {
this.$nextTick(() => {
const arr = []
this.getOpenMenusIndex(this.menus, arr)
this.openFlgArr = [...new Set([...this.openFlgArr, ...arr])]
})
}
},
mounted() {
const arr = [];
this.generateMenuTree(arr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment