From 7b74098a090977517e610981cd72d509f3df7e33 Mon Sep 17 00:00:00 2001 From: AoXuan Date: Mon, 1 Sep 2025 22:58:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(UserEdit):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=9F=BA=E5=BB=BA=E5=AF=BC=E5=85=A5=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/UserEdit.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/UserEdit.vue b/frontend/src/views/UserEdit.vue index 57306d3..6f667a1 100644 --- a/frontend/src/views/UserEdit.vue +++ b/frontend/src/views/UserEdit.vue @@ -18,7 +18,7 @@
- + - + @@ -1261,9 +1261,12 @@ const handleSubmit = async () => { try { await formRef.value?.validate() + // 排除 InfrastPath 字段 + const { InfrastPath, ...infoWithoutInfrastPath } = formData.Info + // 构建提交数据 const userData = { - Info: { ...formData.Info }, + Info: { ...infoWithoutInfrastPath }, Task: { ...formData.Task }, Notify: { ...formData.Notify }, Data: { ...formData.Data }, @@ -1428,6 +1431,7 @@ const selectInfrastructureConfig = async () => { if (path && path.length > 0) { infrastructureConfigPath.value = path + formData.Info.InfrastPath = path[0] message.success('文件选择成功') } } catch (error) {