refactor: 去除没必要的async () => await包裹

pull/76/head
dhb52 2025-04-19 22:10:00 +08:00
parent 158e92f440
commit 4221f63493
4 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '邮箱账号',
component: 'ApiSelect',
componentProps: {
api: async () => await getSimpleMailAccountList(),
api: getSimpleMailAccountList,
labelField: 'mail',
valueField: 'id',
allowClear: true,

View File

@ -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,

View File

@ -27,7 +27,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '短信渠道',
component: 'ApiSelect',
componentProps: {
api: async () => await getSimpleSmsChannelList(),
api: getSimpleSmsChannelList,
labelField: 'signature',
valueField: 'id',
allowClear: true,

View File

@ -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,