This commit is contained in:
yanran200730
2023-02-07 15:47:21 +08:00

View File

@@ -90,7 +90,7 @@ export default {
}) })
}, },
getDepartments() { getDepartments() {
this.instance.post("/app/wxcp/wxdepartment/listAll").then(res => { this.instance.post("/app/wxcp/wxdepartment/listByUser").then(res => {
if (res?.data) { if (res?.data) {
this.treeData = this.$arr2tree(res.data, {parent: 'parentid'}) this.treeData = this.$arr2tree(res.data, {parent: 'parentid'})
} }