fix(sms): collapse provider settings by default
This commit is contained in:
@@ -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' } },
|
||||
|
||||
Reference in New Issue
Block a user