diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-03 20:28:38 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-03 20:28:38 +0900 |
| commit | 7353d729d7cfe611cab40e5d69966f87e848b4b0 (patch) | |
| tree | 16b7a94e98b0602a8e84dc16ab73e278384f7083 /src/client | |
| parent | リバーシのリプレイ (diff) | |
| download | sharkey-7353d729d7cfe611cab40e5d69966f87e848b4b0.tar.gz sharkey-7353d729d7cfe611cab40e5d69966f87e848b4b0.tar.bz2 sharkey-7353d729d7cfe611cab40e5d69966f87e848b4b0.zip | |
ヘッダーの戻るボタンがページリロードすると消える問題を修正
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/ui/_common_/header.vue | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/ui/_common_/header.vue b/src/client/ui/_common_/header.vue index 32207d5dca..5d7253c368 100644 --- a/src/client/ui/_common_/header.vue +++ b/src/client/ui/_common_/header.vue @@ -42,8 +42,11 @@ export default defineComponent({ }, watch: { - $route(to, from) { - this.canBack = (window.history.length > 0 && !['index'].includes(to.name)); + $route: { + handler(to, from) { + this.canBack = (window.history.length > 0 && !['index'].includes(to.name)); + }, + immediate: true }, }, |