顶部修改密码

This commit is contained in:
2023-05-24 19:14:20 +08:00
parent 267e9af2d5
commit 4f16dff32f
3 changed files with 197 additions and 8 deletions

View File

@@ -256,9 +256,11 @@ export default {
rolesIds.push(el)
}
})
await usersAdd(this.username, this.name, this.sex, this.phone, rolesIds, this.password)
this.toast('操作成功')
this._usersQuery()
let res = await usersAdd(this.username, this.name, this.sex, this.phone, rolesIds, this.password)
if (res.code === '1') {
this._usersQuery()
}
this.toast(res.desc)
this.$refs.child.active = false
this.$refs.child.disabled = false
} catch (e) {