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 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(() => {
|
||||||
|
|
Loading…
Reference in New Issue