fix(chat): redirect guests to auth before image paywall
This commit is contained in:
@@ -30,6 +30,10 @@ export type StaticRoute = (typeof ROUTES)[keyof typeof ROUTES];
|
||||
export const ROUTE_BUILDERS = {
|
||||
chatDeviceId: (deviceId: string): `/chat/deviceid/${string}` =>
|
||||
`/chat/deviceid/${encodeURIComponent(deviceId)}` as const,
|
||||
subscription: (type: "vip" | "voice"): `/subscription?type=${string}` =>
|
||||
`${ROUTES.subscription}?type=${encodeURIComponent(type)}` as const,
|
||||
authWithRedirect: (redirectTo: string): `/auth?redirect=${string}` =>
|
||||
`${ROUTES.auth}?redirect=${encodeURIComponent(redirectTo)}` as const,
|
||||
} as const;
|
||||
|
||||
/** 仅未登录态可见的路由(命中后已登录用户应跳走) */
|
||||
|
||||
Reference in New Issue
Block a user