From 4cb3a72f51e2c893fc027bc74331c3257ddac180 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 29 Dec 2022 21:28:33 +0800 Subject: [PATCH] fix: login in safari browser has no effect (#804) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind bug #### What this PR does / why we need it: 修复在 Safari 浏览器登录之后无反应的问题。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/3002 #### Special notes for your reviewer: 测试方式: 1. 在 Safari 浏览器上测试登录之后是否有跳转到仪表盘即可。 #### Does this PR introduce a user-facing change? ```release-note 修复 Console 端在 Safari 浏览器登录之后无反应的问题 ``` --- src/modules/system/users/Login.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/system/users/Login.vue b/src/modules/system/users/Login.vue index 63fcb72e..f8b2f4e3 100644 --- a/src/modules/system/users/Login.vue +++ b/src/modules/system/users/Login.vue @@ -12,12 +12,16 @@ onBeforeMount(() => { router.push({ name: "Dashboard" }); } }); + +function onLoginSucceed() { + window.location.reload(); +}