mirror of https://github.com/halo-dev/halo-admin
fix: login in safari browser has no effect (#804)
#### 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 浏览器登录之后无反应的问题 ```pull/805/head^2
parent
a7341df0b5
commit
4cb3a72f51
|
@ -12,12 +12,16 @@ onBeforeMount(() => {
|
|||
router.push({ name: "Dashboard" });
|
||||
}
|
||||
});
|
||||
|
||||
function onLoginSucceed() {
|
||||
window.location.reload();
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<div class="flex h-screen flex-col items-center justify-center">
|
||||
<IconLogo class="mb-8" />
|
||||
<div class="login-form flex w-72 flex-col">
|
||||
<LoginForm @succeed="router.go(0)" />
|
||||
<LoginForm @succeed="onLoginSucceed" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue