代码优化,避免【部门】移动节点时出现PID数据环形问题

This commit is contained in:
Zheng Jie
2023-07-07 17:49:42 +08:00
parent 66e24cfea0
commit 9e874e9b5f
2 changed files with 4 additions and 3 deletions

View File

@@ -8,10 +8,11 @@ export function getDepts(params) {
})
}
export function getDeptSuperior(ids) {
export function getDeptSuperior(ids, exclude) {
exclude = exclude !== undefined ? exclude : false
const data = ids.length || ids.length === 0 ? ids : Array.of(ids)
return request({
url: 'api/dept/superior',
url: 'api/dept/superior?exclude=' + exclude,
method: 'post',
data
})