fix: 修复前端打包报错的缺陷
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
wxg0103 2024-10-14 18:49:33 +08:00
parent 7a0f15b4e4
commit 05c40c3ea6
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ const currentPlatform = reactive<Platform>({
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'] }]

View File

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