更换接口
This commit is contained in:
@@ -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'})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user