feat: add base path to resources (#17655)

Co-authored-by: fhliu4 <fhliu4@iflytek.com>
This commit is contained in:
diuwu 2025-04-15 17:05:50 +08:00 • committed by GitHub
commit 7161d7ad96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 146 additions and 38 deletions

View file

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