Commit ed331a2c by 潘际乾

SideMenu fix

parent 45724bb4
...@@ -32,7 +32,6 @@ export default { ...@@ -32,7 +32,6 @@ export default {
data: function() { data: function() {
return { return {
openFlgArr: [], openFlgArr: [],
openFlgArrCopy: [],
menuOpen: true, menuOpen: true,
menuList: [ menuList: [
// { inifrm: "0", ininam: "公共夹", pntmiu: "" }, // { inifrm: "0", ininam: "公共夹", pntmiu: "" },
...@@ -109,6 +108,15 @@ export default { ...@@ -109,6 +108,15 @@ export default {
return this.$route.path; return this.$route.path;
}, },
}, },
watch: {
$route: function () {
this.$nextTick(() => {
const arr = []
this.getOpenMenusIndex(this.menus, arr)
this.openFlgArr = [...new Set([...this.openFlgArr, ...arr])]
})
}
},
mounted() { mounted() {
const arr = []; const arr = [];
this.generateMenuTree(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