Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: install page handle form error

shuaica317c9e4892
diff --git a/ui/src/pages/Install/index.tsx b/ui/src/pages/Install/index.tsx
index 30e6f720..52dca0ec 100644
--- a/ui/src/pages/Install/index.tsx
+++ b/ui/src/pages/Install/index.tsx
@@ -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(() => {