mirror of https://gitee.com/answerdev/answer.git
Merge branch 'ui-v0.3' of git.backyard.segmentfault.com:opensource/answer into ui-v0.3
This commit is contained in:
commit
2396554b38
|
@ -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();
|
||||||
})
|
})
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue