fix : 修复角色分配用户单个添加时报错
This commit is contained in:
@@ -320,9 +320,15 @@ const handleDialogSelect = (selection) => {
|
||||
}
|
||||
}
|
||||
const handleSubmit = (userIds) => {
|
||||
let ids=[]
|
||||
if(userIds instanceof Array){
|
||||
ids=userIds
|
||||
}else{
|
||||
ids.push(userIds)
|
||||
}
|
||||
roleBindUser({
|
||||
id: roleId,
|
||||
ids: userIds,
|
||||
ids: ids,
|
||||
}).then(res => {
|
||||
if (res.code === 1000) {
|
||||
ElMessage.success(res.msg);
|
||||
|
||||
Reference in New Issue
Block a user