diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index d02b846..f5811fe 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -162,9 +162,9 @@ export default { }, getSupDepts(id) { crudDept.getDeptSuperior(id).then(res => { - const date = res.content - this.buildDepts(date) - this.depts = date + const data = res.content + this.buildDepts(data) + this.depts = data }) }, buildDepts(depts) {