Skip to content

Commit 084f464

Browse files
author
feige996
committed
fix(me): 在非微信小程序环境添加登录后重定向参数
1 parent 6ca570d commit 084f464

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/me/me.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ async function handleLogin() {
3939
await tokenStore.wxLogin()
4040
// #endif
4141
// #ifndef MP-WEIXIN
42-
uni.navigateTo({ url: LOGIN_PAGE })
42+
uni.navigateTo({
43+
url: `${LOGIN_PAGE}?redirect=${encodeURIComponent('/pages/me/me')}`,
44+
})
4345
// #endif
4446
}
4547

0 commit comments

Comments
 (0)