Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
[release-2.0] fix: login in safari browser has no effect (#808)
Browse files Browse the repository at this point in the history
This is an automated cherry-pick of #804

/assign ruibaby

```release-note
修复 Console 端在 Safari 浏览器登录之后无反应的问题
```
  • Loading branch information
halo-dev-bot authored Dec 29, 2022
1 parent c2f9b73 commit 5602315
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/system/users/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 5602315

Please sign in to comment.