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