fix: 绑定页用 window.location 跳转登录 (企微浏览器兼容)
router.push 在企微内置浏览器可能不触发跳转, 改用 window.location.href 强制整页跳转 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -21,8 +21,8 @@ onMounted(() => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!auth.isLoggedIn) {
|
if (!auth.isLoggedIn) {
|
||||||
// Not logged in yet — redirect to login, then come back here
|
// Not logged in yet — redirect to login (use window.location for WeChat Work browser compat)
|
||||||
router.push(`/login?redirect=${encodeURIComponent(route.fullPath)}`)
|
window.location.href = `/login?redirect=${encodeURIComponent(route.fullPath)}`
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user