fix: install page handle form error

This commit is contained in:
shuai 2022-11-11 11:22:44 +08:00
parent a8e9bf90ca
commit ca317c9e48
1 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ import {
const Index: FC = () => { const Index: FC = () => {
const { t } = useTranslation('translation', { keyPrefix: 'install' }); const { t } = useTranslation('translation', { keyPrefix: 'install' });
const [step, setStep] = useState(4); const [step, setStep] = useState(1);
const [loading, setLoading] = useState(true); const [loading, setLoading] = useState(true);
const [errorData, setErrorData] = useState<{ [propName: string]: any }>({ const [errorData, setErrorData] = useState<{ [propName: string]: any }>({
msg: '', msg: '',
@ -225,11 +225,11 @@ const Index: FC = () => {
db_connection_success: res.db_connection_success, db_connection_success: res.db_connection_success,
}); });
if (res && res.config_file_exist) { if (res && res.config_file_exist) {
// if (res.db_connection_success) { if (res.db_connection_success) {
// setStep(6) setStep(6)
// } else { } else {
// setStep(7); setStep(7);
// } }
} }
}) })
.finally(() => { .finally(() => {