【修改】修改yonghu重置密码

This commit is contained in:
zhoulingpo
2023-05-17 09:21:02 +08:00
parent c76a892a39
commit 1c2ee5a4fc
+5 -1
View File
@@ -299,7 +299,11 @@ export default {
if (!this.checkUserForm()) return
const data = JSON.parse(JSON.stringify(this.form))
data.account = this.$JSEncrypt(data.account)
data.password = this.$JSEncrypt(data.password)
if(this.dialogTitle=='编辑'){
delete data['password']
}else{
data.password = this.$JSEncrypt(data.password)
}
const jsonData = JSON.stringify(data)
this.$api.user.sysUserAddUser(Base64.encodeURI(jsonData)).then(_ => {
this.$message.success('操作成功')