From 4221f634935f0ae8ab438074f00f2e6a746b4065 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sat, 19 Apr 2025 22:10:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=8E=BB=E9=99=A4=E6=B2=A1?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84async=20()=20=3D>=20await=E5=8C=85?= =?UTF-8?q?=E8=A3=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/system/mail/log/data.ts | 2 +- apps/web-antd/src/views/system/mail/template/data.ts | 4 ++-- apps/web-antd/src/views/system/sms/log/data.ts | 2 +- apps/web-antd/src/views/system/sms/template/data.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) 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,