fix(basepath): add basepath

This commit is contained in:
zhangheng
2026-02-28 15:43:50 +08:00
parent bcf46df7ec
commit 4aa29b80d1
14 changed files with 72 additions and 49 deletions

View File

@@ -204,7 +204,7 @@ export default function LoginPage({ useUserStore }: { useUserStore: any }) {
access_token: info.access_token || "",
refresh_token: info.refresh_token || "",
})
window.location.href = "/"
window.location.href = `${process.env.NEXT_PUBLIC_BASE_PATH}/`
} catch (error) {
if (error) {
const message =