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..53ac4f505 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 @@ -43,7 +43,7 @@ const [Modal, modalApi] = useVbenModal({ modalApi.lock(); // 提交表单 const data = (await formApi.getValues()) as PayChannelApi.Channel; - data.config = JSON.stringify(data.config); + data.config = JSON.stringify(data.config || {}); try { await (data.id ? updateChannel(data) : createChannel(data)); // 关闭并提示 diff --git a/apps/web-ele/src/views/pay/app/modules/channel-form.vue b/apps/web-ele/src/views/pay/app/modules/channel-form.vue index 707069293..834e50985 100644 --- a/apps/web-ele/src/views/pay/app/modules/channel-form.vue +++ b/apps/web-ele/src/views/pay/app/modules/channel-form.vue @@ -43,7 +43,7 @@ const [Modal, modalApi] = useVbenModal({ modalApi.lock(); // 提交表单 const data = (await formApi.getValues()) as PayChannelApi.Channel; - data.config = JSON.stringify(data.config); + data.config = JSON.stringify(data.config || {}); try { await (data.id ? updateChannel(data) : createChannel(data)); // 关闭并提示