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
|
|
@ -5,6 +5,7 @@ import { useRouter } from 'next/navigation'
|
|||
import Toast from '../components/base/toast'
|
||||
import Loading from '../components/base/loading'
|
||||
import Button from '@/app/components/base/button'
|
||||
import { basePath } from '@/utils/var'
|
||||
import { fetchInitValidateStatus, initValidate } from '@/service/common'
|
||||
import type { InitValidateStatusResponse } from '@/models/common'
|
||||
|
||||
|
|
@ -41,7 +42,7 @@ const InitPasswordPopup = () => {
|
|||
useEffect(() => {
|
||||
fetchInitValidateStatus().then((res: InitValidateStatusResponse) => {
|
||||
if (res.status === 'finished')
|
||||
window.location.href = '/install'
|
||||
window.location.href = `${basePath}/install`
|
||||
else
|
||||
setLoading(false)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue