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: installation init add params

shuaid88aa11edf26
diff --git a/ui/src/pages/Install/index.tsx b/ui/src/pages/Install/index.tsx
index 287f4f11..6201f2cd 100644
--- a/ui/src/pages/Install/index.tsx
+++ b/ui/src/pages/Install/index.tsx
@@ -134,7 +134,16 @@ const Index: FC = () => {
};
const checkInstall = () => {
- installInit()
+ const params = {
+ lang: formData.lang.value,
+ db_type: formData.db_type.value,
+ db_username: formData.db_username.value,
+ db_password: formData.db_password.value,
+ db_host: formData.db_host.value,
+ db_name: formData.db_name.value,
+ db_file: formData.db_file.value,
+ };
+ installInit(params)
.then(() => {
handleNext();
})
diff --git a/ui/src/services/install/index.ts b/ui/src/services/install/index.ts
index 31d50690..a2026a7e 100644
--- a/ui/src/services/install/index.ts
+++ b/ui/src/services/install/index.ts
@@ -8,8 +8,8 @@ export const dbCheck = (params) => {
return request.post('/installation/db/check', params);
};
-export const installInit = () => {
- return request.post('/installation/init');
+export const installInit = (params) => {
+ return request.post('/installation/init', params);
};
export const installBaseInfo = (params) => {