From f81d80f8ecf12f0ecba34df9d91a3d7abe88c8a4 Mon Sep 17 00:00:00 2001 From: ozh Date: Tue, 15 Sep 2026 13:54:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(login):=20=E7=99=BB=E5=BD=95=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E8=B7=B3=E8=BD=AC=E5=A4=B1=E8=B4=A5=E6=97=B6=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E6=8C=89=E9=92=AE=E5=8F=AF=E9=87=8D=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx index f2e0a72..421407e 100644 --- a/src/pages/login/index.tsx +++ b/src/pages/login/index.tsx @@ -26,7 +26,7 @@ export default function Login() { try { const { code, userInfo } = await performWxLogin() dispatch(setAuth({ token: code, userInfo })) - reLaunch(ROUTES.HOME) + await reLaunch(ROUTES.HOME) } catch (e) { // code 失效/已用等场景:toast 后端 Message,用户重按按钮重新 Taro.login(code 一次性,重试安全) toast.error(e instanceof Error && e.message ? e.message : '登录失败')