[代码完善](v2.5): v2.5 beta 修复用户管理左侧部门搜索问题

2.5 Beta 详情:https://www.ydyno.com/archives/1225.html
This commit is contained in:
ZhengJie
2020-05-13 17:21:24 +08:00
parent bd6e504f94
commit 63492da927

View File

@@ -390,7 +390,9 @@ export default {
const sort = 'id,desc'
const params = { sort: sort }
if (typeof node !== 'object') {
params['name'] = node
if (node) {
params['name'] = node
}
} else if (node.level !== 0) {
params['pid'] = node.data.id
}