mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-15 03:24:53 +08:00
feat: update MySQL parameter input validation rules (#11396)
This commit is contained in:
parent
00b4a6caf5
commit
123e6b90a3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue