Browse Source

✨fixed: refresh bug

chuzhixin 4 years ago
parent
commit
2ea5c8c322

+ 1 - 1
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

+ 1 - 1
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