From 2ea5c8c322a42047e64c81d4886e2ba7a9428cd3 Mon Sep 17 00:00:00 2001 From: chuzhixin <1204505056@qq.com> Date: Mon, 16 Nov 2020 11:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8fixed:=20refresh=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/VabAppMain/index.vue | 2 +- src/layouts/components/VabNavBar/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/components/VabAppMain/index.vue b/src/layouts/components/VabAppMain/index.vue index e89d6f9..17855d9 100644 --- a/src/layouts/components/VabAppMain/index.vue +++ b/src/layouts/components/VabAppMain/index.vue @@ -59,7 +59,7 @@ }, created() { //重载所有路由 - this.$baseEventBus.$on('reload-routerview', () => { + this.$baseEventBus.$on('reload-router-view', () => { this.routerView = false this.$nextTick(() => { this.routerView = true diff --git a/src/layouts/components/VabNavBar/index.vue b/src/layouts/components/VabNavBar/index.vue index 4fa4d0d..9a2a634 100644 --- a/src/layouts/components/VabNavBar/index.vue +++ b/src/layouts/components/VabNavBar/index.vue @@ -61,7 +61,7 @@ this.changeCollapse() }, async refreshRoute() { - this.$baseEventBus.$emit('reload-routerview') + this.$baseEventBus.$emit('reload-router-view') this.pulse = true setTimeout(() => { this.pulse = false