|
|
|
@ -80,12 +80,12 @@ const InstallForm = () => {
|
|
|
|
fetchSetupStatus().then((res: SetupStatusResponse) => {
|
|
|
|
fetchSetupStatus().then((res: SetupStatusResponse) => {
|
|
|
|
if (res.step === 'finished') {
|
|
|
|
if (res.step === 'finished') {
|
|
|
|
localStorage.setItem('setup_status', 'finished')
|
|
|
|
localStorage.setItem('setup_status', 'finished')
|
|
|
|
router.push(`/signin`)
|
|
|
|
router.push('/signin')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
fetchInitValidateStatus().then((res: InitValidateStatusResponse) => {
|
|
|
|
fetchInitValidateStatus().then((res: InitValidateStatusResponse) => {
|
|
|
|
if (res.status === 'not_started')
|
|
|
|
if (res.status === 'not_started')
|
|
|
|
router.push(`/init`)
|
|
|
|
router.push('/init')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setLoading(false)
|
|
|
|
setLoading(false)
|
|
|
|
|