[release-2.0] fix: login in safari browser has no effect (#808)

This is an automated cherry-pick of #804

/assign ruibaby

```release-note
修复 Console 端在 Safari 浏览器登录之后无反应的问题
```
pull/809/head^2
Halo Dev Bot 2022-12-29 21:34:33 +08:00 committed by GitHub
parent c2f9b73a8d
commit 56023158a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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>