fix: 修复前端打包报错的缺陷
This commit is contained in:
parent
7a0f15b4e4
commit
05c40c3ea6
@ -66,7 +66,7 @@ const currentPlatform = reactive<Platform>({
|
|||||||
config: {}
|
config: {}
|
||||||
})
|
})
|
||||||
|
|
||||||
const formatFieldName = (key?: string): string => {
|
const formatFieldName = (key?: any): string => {
|
||||||
const fieldNames: { [key: string]: string } = {
|
const fieldNames: { [key: string]: string } = {
|
||||||
app_key: 'APP Key',
|
app_key: 'APP Key',
|
||||||
app_secret: 'APP Secret',
|
app_secret: 'APP Secret',
|
||||||
@ -80,7 +80,7 @@ const formatFieldName = (key?: string): string => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const getValidationRules = (key: string) => {
|
const getValidationRules = (key: any) => {
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case 'app_key':
|
case 'app_key':
|
||||||
return [{ required: true, message: '请输入 APP Key', trigger: ['blur', 'change'] }]
|
return [{ required: true, message: '请输入 APP Key', trigger: ['blur', 'change'] }]
|
||||||
|
|||||||
@ -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 } = {
|
const fieldNames: { [key: string]: string } = {
|
||||||
app_key: 'APP Key',
|
app_key: 'APP Key',
|
||||||
app_secret: 'APP Secret',
|
app_secret: 'APP Secret',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user