Added the missing path of the webpath prefix and the prefix basepath + of static resources to remove the bug of adding more basepath. (#18658)

Co-authored-by: qingguo <qingguo@lexin.com>
This commit is contained in:
GQ1994
2025-04-24 17:14:26 +08:00
committed by GitHub
parent 13f647feaa
commit 9982445dad
7 changed files with 13 additions and 8 deletions

View File

@@ -16,6 +16,7 @@ import Button from '@/app/components/base/button'
import { fetchInitValidateStatus, fetchSetupStatus, setup } from '@/service/common'
import type { InitValidateStatusResponse, SetupStatusResponse } from '@/models/common'
import { basePath } from '@/utils/var'
const validPassword = /^(?=.*[a-zA-Z])(?=.*\d).{8,}$/
@@ -80,12 +81,12 @@ const InstallForm = () => {
fetchSetupStatus().then((res: SetupStatusResponse) => {
if (res.step === 'finished') {
localStorage.setItem('setup_status', 'finished')
router.push('/signin')
router.push(`${basePath}/signin`)
}
else {
fetchInitValidateStatus().then((res: InitValidateStatusResponse) => {
if (res.status === 'not_started')
router.push('/init')
router.push(`${basePath}/init`)
})
}
setLoading(false)