mirror of https://github.com/1Panel-dev/1Panel
fix: 修改校验规则
parent
0a8bf98ee9
commit
6593c6de66
|
@ -108,7 +108,7 @@ const handleParams = () => {
|
||||||
} else {
|
} else {
|
||||||
rules[p.envKey] = [Rules.requiredInput];
|
rules[p.envKey] = [Rules.requiredInput];
|
||||||
if (p.envKey === 'PANEL_DB_NAME') {
|
if (p.envKey === 'PANEL_DB_NAME') {
|
||||||
rules[p.envKey].push(Rules.databaseName);
|
rules[p.envKey].push(Rules.linuxName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,7 +169,7 @@ let rules = reactive({
|
||||||
appType: [Rules.requiredInput],
|
appType: [Rules.requiredInput],
|
||||||
proxy: [Rules.requiredInput],
|
proxy: [Rules.requiredInput],
|
||||||
appinstall: {
|
appinstall: {
|
||||||
name: [Rules.name],
|
name: [Rules.linuxName],
|
||||||
appId: [Rules.requiredSelectBusiness],
|
appId: [Rules.requiredSelectBusiness],
|
||||||
params: {},
|
params: {},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue