From 9d3a8ae57e364be89374e9d20ebddab6f2bf3463 Mon Sep 17 00:00:00 2001 From: v6ole Date: Fri, 26 Jun 2026 15:09:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=91=E5=AE=9A=E9=A1=B5=E7=94=A8=20w?= =?UTF-8?q?indow.location=20=E8=B7=B3=E8=BD=AC=E7=99=BB=E5=BD=95=20(?= =?UTF-8?q?=E4=BC=81=E5=BE=AE=E6=B5=8F=E8=A7=88=E5=99=A8=E5=85=BC=E5=AE=B9?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit router.push 在企微内置浏览器可能不触发跳转, 改用 window.location.href 强制整页跳转 Co-Authored-By: Claude --- frontend/src/views/WecomBind.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/WecomBind.vue b/frontend/src/views/WecomBind.vue index 98548a3..8d60033 100644 --- a/frontend/src/views/WecomBind.vue +++ b/frontend/src/views/WecomBind.vue @@ -21,8 +21,8 @@ onMounted(() => { return } if (!auth.isLoggedIn) { - // Not logged in yet — redirect to login, then come back here - router.push(`/login?redirect=${encodeURIComponent(route.fullPath)}`) + // Not logged in yet — redirect to login (use window.location for WeChat Work browser compat) + window.location.href = `/login?redirect=${encodeURIComponent(route.fullPath)}` return } })