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();