mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复前端打包报错的缺陷
This commit is contained in:
parent
7a0f15b4e4
commit
05c40c3ea6
|
|
@ -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'] }]
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue