feat(chat): restore image viewer after payment

This commit is contained in:
2026-06-29 16:19:48 +08:00
parent 6273cd1bbe
commit 61796c732f
12 changed files with 297 additions and 63 deletions
+6 -1
View File
@@ -31,6 +31,8 @@ export type StaticRoute = (typeof ROUTES)[keyof typeof ROUTES];
export const ROUTE_BUILDERS = {
chatDeviceId: (deviceId: string): `/chat/deviceid/${string}` =>
`/chat/deviceid/${encodeURIComponent(deviceId)}` as const,
chatImage: (messageId: string): `/chat/image/${string}` =>
`/chat/image/${encodeURIComponent(messageId)}` as const,
subscription: (
type: "vip" | "topup",
options: { returnTo?: "chat" } = {},
@@ -73,4 +75,7 @@ export const ALL_STATIC_ROUTES: readonly StaticRoute[] = [
] as const;
/** 联合路由类型,包含静态路由与已知动态路由 */
export type Route = StaticRoute | `/chat/deviceid/${string}`;
export type Route =
| StaticRoute
| `/chat/deviceid/${string}`
| `/chat/image/${string}`;