fix(webui): resolve team ID using target location pathname in beforeLoad

This commit is contained in:
yiling
2026-06-26 11:48:38 +08:00
parent 4fd27ab147
commit fc7d1452b0
+2 -2
View File
@@ -127,9 +127,9 @@ interface MyRouterContext {
}
export const Route = createRootRouteWithContext<MyRouterContext>()({
beforeLoad: async () => {
beforeLoad: async ({ location }) => {
if (typeof window !== 'undefined') {
const pathname = window.location.pathname
const pathname = location.pathname
const teamId = await resolveTeamIdFromPath(pathname)
if (teamId) {