fix(private-room): preserve payment return route

This commit is contained in:
2026-07-16 18:06:15 +08:00
parent b64a90f0e3
commit 4981de9b18
17 changed files with 280 additions and 21 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
*/
import type { PayChannel } from "@/data/dto/payment";
import type { AppSubscriptionReturnTo } from "@/router/navigation-types";
import {
PAYMENT_ANALYTICS_ENTRY_PARAM,
PAYMENT_ANALYTICS_REASON_PARAM,
@@ -36,7 +37,7 @@ export const ROUTE_BUILDERS = {
type: "vip" | "topup",
options: {
payChannel?: PayChannel;
returnTo?: "chat";
returnTo?: Exclude<AppSubscriptionReturnTo, null>;
analytics?: PaymentAnalyticsContext;
} = {},
): `/subscription?${string}` => {