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',