fix(me): 在非微信小程序环境添加登录后重定向参数

This commit is contained in:
feige996
2025-09-07 17:30:15 +08:00
parent 6ca570d5fa
commit 084f46407a

View File

@@ -39,7 +39,9 @@ async function handleLogin() {
await tokenStore.wxLogin()
// #endif
// #ifndef MP-WEIXIN
uni.navigateTo({ url: LOGIN_PAGE })
uni.navigateTo({
url: `${LOGIN_PAGE}?redirect=${encodeURIComponent('/pages/me/me')}`,
})
// #endif
}