refactor: 去除没必要的async () => await包裹
parent
158e92f440
commit
4221f63493
|
|
@ -56,7 +56,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '邮箱账号',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: async () => await getSimpleMailAccountList(),
|
||||
api: getSimpleMailAccountList,
|
||||
labelField: 'mail',
|
||||
valueField: 'id',
|
||||
allowClear: true,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||
label: '短信渠道',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: async () => await getSimpleSmsChannelList(),
|
||||
api: getSimpleSmsChannelList,
|
||||
labelField: 'signature',
|
||||
valueField: 'id',
|
||||
allowClear: true,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue