From 1c2ee5a4fc152da34dac801d0b135c5fab199599 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Wed, 17 May 2023 09:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9yonghu=E9=87=8D=E7=BD=AE=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/System/User.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/System/User.vue b/src/views/System/User.vue index 90c7b1f..8688597 100644 --- a/src/views/System/User.vue +++ b/src/views/System/User.vue @@ -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('操作成功')