|
@@ -229,9 +229,9 @@ export default {
|
|
|
if (this.nowData.id) { // 编辑
|
|
|
this.titleText = '编辑用户'
|
|
|
this.form = Object.assign({}, this.nowData)
|
|
|
- if (this.nowData.roleIds) {
|
|
|
- this.form.roleNames = this.nowData.roleIds.split(',')
|
|
|
- } else {
|
|
|
+ this.form.roleNames = this.nowData.roleIds.split(',')
|
|
|
+ if (!this.nowData.roleIds) {
|
|
|
+ this.nowData.roleIds = ''
|
|
|
this.form.roleNames = []
|
|
|
}
|
|
|
this.form.loginFlag = Number(this.nowData.loginFlag)
|