From 7353d729d7cfe611cab40e5d69966f87e848b4b0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 3 Nov 2020 20:28:38 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=98=E3=83=83=E3=83=80=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E6=88=BB=E3=82=8B=E3=83=9C=E3=82=BF=E3=83=B3=E3=81=8C=E3=83=9A?= =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=83=AA=E3=83=AD=E3=83=BC=E3=83=89=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=81=A8=E6=B6=88=E3=81=88=E3=82=8B=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/ui/_common_/header.vue | 7 +++++-- 1 file 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 }, },