fix: 修复 userTable 接口传参格式错误问题,修复role 编辑时内容回显问题
This commit is contained in:
@@ -84,7 +84,7 @@ export default {
|
||||
handler (n) {
|
||||
this.editRole = JSON.parse(JSON.stringify(n))
|
||||
if (this.editRole.roles && this.editRole.roles.length > 0) {
|
||||
this.editRole.roleIds = this.editRole.roles.map(t => t.id)
|
||||
this.editRole.roleIds = this.editRole.roles.map(t => t.id).json(',')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user