用户管理角色下拉问题修改

This commit is contained in:
zzyuan 2025-03-07 17:24:30 +08:00
parent 5302ef1e08
commit 0601e94429
1 changed files with 1 additions and 2 deletions

View File

@ -1001,8 +1001,7 @@ export default {
this.postOptions = response.posts this.postOptions = response.posts
this.roleOptions = response.roles this.roleOptions = response.roles
this.$set(this.form, 'postIds', response.postIds) this.$set(this.form, 'postIds', response.postIds)
// this.$set(this.form, 'roleIds', response.roleIds) this.$set(this.form, 'roleIds', response.roleIds)
this.$set(this.form, 'roleIds', response.roleIds.map(item=>{ return item+'' }))
this.open = true this.open = true
this.title = '修改用户' this.title = '修改用户'
this.form.password = '' this.form.password = ''