From a453364fd7f94e8b2ea98e254b246b802bfa48e9 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Mon, 10 Aug 2026 17:43:03 +0800 Subject: [PATCH] 1 --- src/views/sys/user-manage/addEdit.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/sys/user-manage/addEdit.vue b/src/views/sys/user-manage/addEdit.vue index c0fb46f..a5459bd 100644 --- a/src/views/sys/user-manage/addEdit.vue +++ b/src/views/sys/user-manage/addEdit.vue @@ -269,13 +269,15 @@ export default { submit() { this.$refs.form.validate((valid) => { if (valid) { - if (typeof this.form.birth == "object") { - this.form.birth = this.format(this.form.birth, "yyyy-MM-dd"); + const params = { ...this.form }; + if (typeof params.birth == "object") { + params.birth = this.format(params.birth, "yyyy-MM-dd"); } + delete params.realNameAuthTime; if (this.type == "1") { // 编辑 this.submitLoading = true; - editUser(this.form).then((res) => { + editUser(params).then((res) => { this.submitLoading = false; if (res.success) { this.$Message.success("操作成功"); @@ -286,7 +288,7 @@ export default { } else { // 添加 this.submitLoading = true; - addUser(this.form).then((res) => { + addUser(params).then((res) => { this.submitLoading = false; if (res.success) { this.$Message.success("操作成功");