fix: 修复腾讯云短信配置缺失问题,配置腾讯云短信,需要增加输入 sdkAppId 配置项

Closes #191
This commit is contained in:
2025-09-28 20:38:58 +08:00
parent 7ff0bfd846
commit 6477a6de3e

View File

@@ -37,6 +37,15 @@ const [form, resetForm] = useResetReactive({
status: 1, status: 1,
}) })
// 监听供应商变化,当选择腾讯云时自动填充厂商配置
watch(() => form.supplier, async (newValue) => {
if (newValue === 'tencent') {
form.supplierConfig = '{"sdkAppId":""}'
} else {
form.supplierConfig = ''
}
})
const columns: ColumnItem[] = reactive([ const columns: ColumnItem[] = reactive([
{ {
label: '名称', label: '名称',
@@ -161,6 +170,8 @@ const columns: ColumnItem[] = reactive([
const reset = () => { const reset = () => {
formRef.value?.formRef?.resetFields() formRef.value?.formRef?.resetFields()
resetForm() resetForm()
// 重置时清空供应商配置
form.supplierConfig = ''
} }
// 保存 // 保存