diff --git a/apps/web-antd/src/views/system/mail/log/data.ts b/apps/web-antd/src/views/system/mail/log/data.ts index 585269e4a..3a5073261 100644 --- a/apps/web-antd/src/views/system/mail/log/data.ts +++ b/apps/web-antd/src/views/system/mail/log/data.ts @@ -56,7 +56,7 @@ export function useGridFormSchema(): VbenFormSchema[] { label: '邮箱账号', component: 'ApiSelect', componentProps: { - api: async () => await getSimpleMailAccountList(), + api: getSimpleMailAccountList, labelField: 'mail', valueField: 'id', allowClear: true, diff --git a/apps/web-antd/src/views/system/mail/template/data.ts b/apps/web-antd/src/views/system/mail/template/data.ts index 8d1720c2d..4451f1ba2 100644 --- a/apps/web-antd/src/views/system/mail/template/data.ts +++ b/apps/web-antd/src/views/system/mail/template/data.ts @@ -46,7 +46,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '邮箱账号', component: 'ApiSelect', componentProps: { - api: async () => await getSimpleMailAccountList(), + api: getSimpleMailAccountList, class: 'w-full', labelField: 'mail', valueField: 'id', @@ -171,7 +171,7 @@ export function useGridFormSchema(): VbenFormSchema[] { label: '邮箱账号', component: 'ApiSelect', componentProps: { - api: async () => await getSimpleMailAccountList(), + api: getSimpleMailAccountList, labelField: 'mail', valueField: 'id', allowClear: true, diff --git a/apps/web-antd/src/views/system/sms/log/data.ts b/apps/web-antd/src/views/system/sms/log/data.ts index dcbb38d09..2dd7f2fc6 100644 --- a/apps/web-antd/src/views/system/sms/log/data.ts +++ b/apps/web-antd/src/views/system/sms/log/data.ts @@ -27,7 +27,7 @@ export function useGridFormSchema(): VbenFormSchema[] { label: '短信渠道', component: 'ApiSelect', componentProps: { - api: async () => await getSimpleSmsChannelList(), + api: getSimpleSmsChannelList, labelField: 'signature', valueField: 'id', allowClear: true, diff --git a/apps/web-antd/src/views/system/sms/template/data.ts b/apps/web-antd/src/views/system/sms/template/data.ts index 2b0a4cee8..eb4a7272d 100644 --- a/apps/web-antd/src/views/system/sms/template/data.ts +++ b/apps/web-antd/src/views/system/sms/template/data.ts @@ -57,7 +57,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '短信渠道', component: 'ApiSelect', componentProps: { - api: async () => await getSimpleSmsChannelList(), + api: getSimpleSmsChannelList, class: 'w-full', labelField: 'signature', valueField: 'id', @@ -151,7 +151,7 @@ export function useGridFormSchema(): VbenFormSchema[] { label: '短信渠道', component: 'ApiSelect', componentProps: { - api: async () => await getSimpleSmsChannelList(), + api: getSimpleSmsChannelList, labelField: 'signature', valueField: 'id', allowClear: true,