From f919305e36f22b8d804c8b4abaaa0e05a74265e0 Mon Sep 17 00:00:00 2001
From: xingyu <xingyu4j@vip.qq.com>
Date: Tue, 28 Mar 2023 23:38:49 +0800
Subject: [PATCH] fix: account #I6R59O

---
 src/views/system/mail/account/account.data.ts | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/views/system/mail/account/account.data.ts b/src/views/system/mail/account/account.data.ts
index fb86d034..c7642089 100644
--- a/src/views/system/mail/account/account.data.ts
+++ b/src/views/system/mail/account/account.data.ts
@@ -1,5 +1,5 @@
 import { BasicColumn, FormSchema, useRender } from '@/components/Table'
-import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
+import { DICT_TYPE, getBoolDictOptions } from '@/utils/dict'
 
 export const columns: BasicColumn[] = [
   {
@@ -100,10 +100,9 @@ export const formSchema: FormSchema[] = [
   {
     label: '是否开启 SSL',
     field: 'sslEnable',
-    component: 'Select',
-    defaultValue: 0,
+    component: 'Switch',
     componentProps: {
-      options: getIntDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)
+      options: getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)
     }
   }
 ]