fix(sms): collapse provider settings by default

This commit is contained in:
2026-10-05 02:29:42 +08:00
parent 8ef2f7e49f
commit 6037ca184b
2 changed files with 9 additions and 3 deletions
@@ -54,6 +54,8 @@ export const smsSchema = {
key: 'aliyun',
title: '阿里云',
icon: 'fa fas fa-cloud',
collapsible: true,
defaultCollapsed: true,
fields: [
{
key: 'sms_ali_api_type',
@@ -77,6 +79,8 @@ export const smsSchema = {
key: 'tencent',
title: '腾讯云',
icon: 'fa fas fa-cloud',
collapsible: true,
defaultCollapsed: true,
fields: [
{ key: 'sms_tencent_app_id', label: 'SDK AppID', type: 'input', default: '', dependsOn: { key: 'sms_sdk', value: 'tencent' } },
{ key: 'sms_tencent_app_key', label: 'App Key', type: 'input', inputType: 'password', secret: true, default: '', dependsOn: { key: 'sms_sdk', value: 'tencent' } },
@@ -88,6 +92,8 @@ export const smsSchema = {
key: 'smsbao',
title: '短信宝',
icon: 'fa fas fa-cloud',
collapsible: true,
defaultCollapsed: true,
fields: [
{ key: 'sms_smsbao_username', label: '用户名', type: 'input', default: '', dependsOn: { key: 'sms_sdk', value: 'smsbao' } },
{ key: 'sms_smsbao_password', label: '密码', type: 'input', inputType: 'password', secret: true, default: '', dependsOn: { key: 'sms_sdk', value: 'smsbao' } },