From 05c40c3ea60942218f0644559947e9fdf472c37c Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 14 Oct 2024 18:49:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=89=93=E5=8C=85=E6=8A=A5=E9=94=99=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/views/authentication/component/EditModal.vue | 4 ++-- ui/src/views/authentication/component/SCAN.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/views/authentication/component/EditModal.vue b/ui/src/views/authentication/component/EditModal.vue index a22328a54..1574ca693 100644 --- a/ui/src/views/authentication/component/EditModal.vue +++ b/ui/src/views/authentication/component/EditModal.vue @@ -66,7 +66,7 @@ const currentPlatform = reactive({ config: {} }) -const formatFieldName = (key?: string): string => { +const formatFieldName = (key?: any): string => { const fieldNames: { [key: string]: string } = { app_key: 'APP Key', app_secret: 'APP Secret', @@ -80,7 +80,7 @@ const formatFieldName = (key?: string): string => { ) } -const getValidationRules = (key: string) => { +const getValidationRules = (key: any) => { switch (key) { case 'app_key': return [{ required: true, message: '请输入 APP Key', trigger: ['blur', 'change'] }] diff --git a/ui/src/views/authentication/component/SCAN.vue b/ui/src/views/authentication/component/SCAN.vue index dd0f7a5bc..86a78ca5c 100644 --- a/ui/src/views/authentication/component/SCAN.vue +++ b/ui/src/views/authentication/component/SCAN.vue @@ -143,7 +143,7 @@ function createPlatform(key: string, name: string): Platform { } } -function formatFieldName(key?: string): string { +function formatFieldName(key?: any): string { const fieldNames: { [key: string]: string } = { app_key: 'APP Key', app_secret: 'APP Secret',