summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-11-03 20:28:38 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-11-03 20:28:38 +0900
commit7353d729d7cfe611cab40e5d69966f87e848b4b0 (patch)
tree16b7a94e98b0602a8e84dc16ab73e278384f7083 /src/client
parentリバーシのリプレイ (diff)
downloadsharkey-7353d729d7cfe611cab40e5d69966f87e848b4b0.tar.gz
sharkey-7353d729d7cfe611cab40e5d69966f87e848b4b0.tar.bz2
sharkey-7353d729d7cfe611cab40e5d69966f87e848b4b0.zip
ヘッダーの戻るボタンがページリロードすると消える問題を修正
Diffstat (limited to 'src/client')
-rw-r--r--src/client/ui/_common_/header.vue7
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
},
},