From 9ebba9b0ea366a902b99b348d6d3394845348865 Mon Sep 17 00:00:00 2001 From: huichao Date: Mon, 27 Jul 2020 18:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.vue b/src/App.vue index 04aec11f7..1fe8acac7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -25,6 +25,14 @@ export default { reload: this.reload } }, + methods: { + reload() { + this.isRouterAlive = false + this.$nextTick(() => { + this.isRouterAlive = true + }) + } + } // watch: { // $route(to, from) { // //首次加载去除动画