From 6477a6de3e5d8a332ef020f4b2958702d494b958 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Sun, 28 Sep 2025 20:38:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=85=BE=E8=AE=AF?= =?UTF-8?q?=E4=BA=91=E7=9F=AD=E4=BF=A1=E9=85=8D=E7=BD=AE=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E9=85=8D=E7=BD=AE=E8=85=BE=E8=AE=AF?= =?UTF-8?q?=E4=BA=91=E7=9F=AD=E4=BF=A1=EF=BC=8C=E9=9C=80=E8=A6=81=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=BE=93=E5=85=A5=20sdkAppId=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #191 --- src/views/system/config/sms/AddModal.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/views/system/config/sms/AddModal.vue b/src/views/system/config/sms/AddModal.vue index bfa06e7..87cc268 100644 --- a/src/views/system/config/sms/AddModal.vue +++ b/src/views/system/config/sms/AddModal.vue @@ -37,6 +37,15 @@ const [form, resetForm] = useResetReactive({ status: 1, }) +// 监听供应商变化,当选择腾讯云时自动填充厂商配置 +watch(() => form.supplier, async (newValue) => { + if (newValue === 'tencent') { + form.supplierConfig = '{"sdkAppId":""}' + } else { + form.supplierConfig = '' + } +}) + const columns: ColumnItem[] = reactive([ { label: '名称', @@ -161,6 +170,8 @@ const columns: ColumnItem[] = reactive([ const reset = () => { formRef.value?.formRef?.resetFields() resetForm() + // 重置时清空供应商配置 + form.supplierConfig = '' } // 保存