update pay ui

This commit is contained in:
2025-12-12 12:38:43 +08:00
parent e58f4e4ecf
commit 4b3ee81341
3 changed files with 23 additions and 8 deletions

View File

@@ -407,8 +407,10 @@ export default function AuthFormContent() {
authEvents.trackWechatLoginInitiated('icon_button');
try {
// 1. 构建回调URL
const redirectUrl = `${window.location.origin}/home/wechat-callback`;
// 1. 构建回调URL,携带当前页面路径以便登录后返回
const currentPath = window.location.pathname + window.location.search;
const returnUrl = encodeURIComponent(currentPath);
const redirectUrl = `${window.location.origin}/home/wechat-callback?returnUrl=${returnUrl}`;
// 2. 显示提示
toast({