Merge branch 'ui-v0.3' of git.backyard.segmentfault.com:opensource/answer into ui-v0.3

This commit is contained in:
haitao(lj) 2022-11-04 11:03:31 +08:00
commit 2396554b38
2 changed files with 12 additions and 3 deletions

View File

@ -134,7 +134,16 @@ const Index: FC = () => {
}; };
const checkInstall = () => { 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(() => { .then(() => {
handleNext(); handleNext();
}) })

View File

@ -8,8 +8,8 @@ export const dbCheck = (params) => {
return request.post('/installation/db/check', params); return request.post('/installation/db/check', params);
}; };
export const installInit = () => { export const installInit = (params) => {
return request.post('/installation/init'); return request.post('/installation/init', params);
}; };
export const installBaseInfo = (params) => { export const installBaseInfo = (params) => {