From 9233f2cb365a6361e4a744e25396240c88694b27 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Mon, 30 Jun 2025 16:46:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=98=E5=B7=A5=E7=AE=A1=E7=90=86=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/kitchen/staffManage/staff/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/kitchen/staffManage/staff/index.vue b/src/views/kitchen/staffManage/staff/index.vue index aa0905fd..65f2bde4 100644 --- a/src/views/kitchen/staffManage/staff/index.vue +++ b/src/views/kitchen/staffManage/staff/index.vue @@ -786,15 +786,18 @@ export default { }) console.log(this.accessAuthorityList) console.log(this.form) - this.$set(this.form,"password",encryptWithSM4(this.form.password)) + let param = { + ...this.form + } + param.password = encryptWithSM4(this.form.password) if (this.form.staffId != undefined) { - editKitchenStaffApi(this.form).then(response => { + editKitchenStaffApi(param).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); }); } else { - addKitchenStaffApi(this.form).then(response => { + addKitchenStaffApi(param).then(response => { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList();