feat: update MySQL parameter input validation rules (#11396)

This commit is contained in:
CityFun 2025-12-19 13:42:11 +08:00 committed by GitHub
parent 00b4a6caf5
commit 123e6b90a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,7 +199,7 @@ const updateParam = () => {
};
const isMysql = (form: Object, envKey: string) => {
return envKey === 'PANEL_DB_TYPE' && (form[envKey] == 'mysql' || form[envKey] == 'mariadb');
return form['PANEL_DB_HOST'] != undefined && (form[envKey] == 'mysql' || form[envKey] == 'mariadb');
};
const handleParams = () => {