From 8dab247703526b14e3621f26c5bedb227dbc51c6 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 13 Sep 2024 11:56:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=89=8D=E7=AB=AFts?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/application/component/AccessSettingDrawer.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/views/application/component/AccessSettingDrawer.vue b/ui/src/views/application/component/AccessSettingDrawer.vue index 81963d02e..8dd7a2e8d 100644 --- a/ui/src/views/application/component/AccessSettingDrawer.vue +++ b/ui/src/views/application/component/AccessSettingDrawer.vue @@ -101,7 +101,7 @@ const { params: { id } } = route as any -const form = reactive({ +const form = reactive({ wechat: { app_id: '', app_secret: '', token: '', encoding_aes_key: '', callback_url: '' }, dingtalk: { client_id: '', client_secret: '', callback_url: '' }, wecom: { @@ -115,7 +115,7 @@ const form = reactive({ feishu: { app_id: '', app_secret: '', verification_token: '', callback_url: '' } }) -const rules = reactive({ +const rules = reactive<{ [propName: string]: any }>({ wechat: { app_id: [{ required: true, message: '请输入开发者ID', trigger: 'blur' }], app_secret: [{ required: true, message: '请输入开发者密码', trigger: 'blur' }], @@ -140,7 +140,7 @@ const rules = reactive({ } }) -const configFields = { +const configFields: { [propName: string]: { [propName: string]: any } } = { wechat: { app_id: { label: '开发者ID (APP ID)', placeholder: '请输入开发者ID' }, app_secret: { label: '开发者密码 (APP Secret)', placeholder: '请输入开发者密码' }, @@ -199,7 +199,7 @@ const passwordVisible = reactive>( ) ) -const isPasswordField = (key: string) => passwordFields.has(key) +const isPasswordField = (key: any) => passwordFields.has(key) const closeDrawer = () => { visible.value = false