feat: There is no way the,tree

This commit is contained in:
super_liu
2021-11-03 17:36:33 +08:00
parent 83a154103c
commit d172c99d49
3 changed files with 1 additions and 13 deletions
@@ -3077,12 +3077,8 @@ export default {
userId: this.$store.getters.userInfo.userId userId: this.$store.getters.userInfo.userId
}, {}, res => { }, {}, res => {
if (res.ok) { if (res.ok) {
for (let i in res.data) {
let arr = res.data[i].children
arr.push(arr.shift())
this.treeList = res.data this.treeList = res.data
} }
}
}) })
}, },
// 查询所有菜单 // 查询所有菜单
@@ -2057,12 +2057,8 @@ export default {
userId: this.$store.getters.userInfo.userId userId: this.$store.getters.userInfo.userId
}, {}, res => { }, {}, res => {
if (res.ok) { if (res.ok) {
for (let i in res.data) {
let arr = res.data[i].children
arr.push(arr.shift())
this.treeList = res.data this.treeList = res.data
} }
}
}) })
}, },
// 查询二级菜单 // 查询二级菜单
@@ -2866,12 +2866,8 @@ export default {
userId: this.$store.getters.userInfo.userId userId: this.$store.getters.userInfo.userId
}, {}, res => { }, {}, res => {
if (res.ok) { if (res.ok) {
for (let i in res.data) {
let arr = res.data[i].children
arr.push(arr.shift())
this.treeList = res.data this.treeList = res.data
} }
}
}) })
}, },
// 树-删除 // 树-删除