feat: add base path to resources (#17655)
Co-authored-by: fhliu4 <fhliu4@iflytek.com>
This commit is contained in:
parent
12de1d175c
commit
7161d7ad96
30 changed files with 146 additions and 38 deletions
|
|
@ -10,6 +10,7 @@ import { zodResolver } from '@hookform/resolvers/zod'
|
|||
import Loading from '../components/base/loading'
|
||||
import Input from '../components/base/input'
|
||||
import Button from '@/app/components/base/button'
|
||||
import { basePath } from '@/utils/var'
|
||||
|
||||
import {
|
||||
fetchInitValidateStatus,
|
||||
|
|
@ -70,7 +71,7 @@ const ForgotPasswordForm = () => {
|
|||
fetchSetupStatus().then(() => {
|
||||
fetchInitValidateStatus().then((res: InitValidateStatusResponse) => {
|
||||
if (res.status === 'not_started')
|
||||
window.location.href = '/init'
|
||||
window.location.href = `${basePath}/init`
|
||||
})
|
||||
|
||||
setLoading(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue