This commit is contained in:
parent
4f5d2edcdf
commit
d353f68354
|
|
@ -191,6 +191,7 @@ export const GlobalState: FC<GlobalStateProps> = ({ children }) => {
|
|||
// const locale = pathname.split("/")[1] || "en" // 获取路径中的 locale 部分,如果没有则默认为 "en"
|
||||
|
||||
// 强制跳转到带有 locale 的 setup 页面
|
||||
console.log("[global-state.tsx]-------------", `${homePath}/setup`)
|
||||
return router.push(`${homePath}/setup`)
|
||||
// return router.push(`/${locale}/setup`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue