From 6680e1a4232bbb3f9efc0b626a9adc3989f2e10c Mon Sep 17 00:00:00 2001 From: zlflying Date: Mon, 24 Nov 2025 08:49:17 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=94=B9=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=BA=94=E7=94=A8=E6=B8=A0=E9=81=93=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=97=B6=EF=BC=8Cconfig=E4=B8=8D=E8=83=BD=E4=BC=A0=E9=80=92?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E9=94=99=E8=AF=AF=20=E2=80=9C?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?:=E6=B8=A0=E9=81=93=E9=85=8D=E7=BD=AE=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zlflying --- apps/web-antd/src/views/pay/app/modules/channel-form.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web-antd/src/views/pay/app/modules/channel-form.vue b/apps/web-antd/src/views/pay/app/modules/channel-form.vue index 83ad9281c..00f0ebaf3 100644 --- a/apps/web-antd/src/views/pay/app/modules/channel-form.vue +++ b/apps/web-antd/src/views/pay/app/modules/channel-form.vue @@ -42,7 +42,9 @@ const [Modal, modalApi] = useVbenModal({ } modalApi.lock(); // 提交表单 - const data = (await formApi.getValues()) as PayChannelApi.Channel; + // const data = (await formApi.getValues()) as PayChannelApi.Channel; + const data = formData.value as PayChannelApi.Channel; + // data.config = JSON.stringify(data.config); data.config = JSON.stringify(data.config); try { await (data.id ? updateChannel(data) : createChannel(data)); @@ -123,8 +125,10 @@ const [Modal, modalApi] = useVbenModal({ config: JSON.parse(res.config), }; } + + formData.value.config = JSON.stringify(formData.value.config); // 设置到 values - await formApi.setValues(formData.value); + // await formApi.setValues(formData.value); } finally { modalApi.unlock(); }