mirror of https://gitee.com/answerdev/answer.git
fix: install page handle form error
This commit is contained in:
parent
a8e9bf90ca
commit
ca317c9e48
|
@ -24,7 +24,7 @@ import {
|
|||
|
||||
const Index: FC = () => {
|
||||
const { t } = useTranslation('translation', { keyPrefix: 'install' });
|
||||
const [step, setStep] = useState(4);
|
||||
const [step, setStep] = useState(1);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [errorData, setErrorData] = useState<{ [propName: string]: any }>({
|
||||
msg: '',
|
||||
|
@ -225,11 +225,11 @@ const Index: FC = () => {
|
|||
db_connection_success: res.db_connection_success,
|
||||
});
|
||||
if (res && res.config_file_exist) {
|
||||
// if (res.db_connection_success) {
|
||||
// setStep(6)
|
||||
// } else {
|
||||
// setStep(7);
|
||||
// }
|
||||
if (res.db_connection_success) {
|
||||
setStep(6)
|
||||
} else {
|
||||
setStep(7);
|
||||
}
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
|
|
Loading…
Reference in New Issue