Parcourir la source

perf: use $route.path to the router-view key

Pan il y a 5 ans
Parent
commit
7aef039149
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/layout/components/AppMain.vue

+ 1 - 1
src/layout/components/AppMain.vue

@@ -11,7 +11,7 @@ export default {
11
   name: 'AppMain',
11
   name: 'AppMain',
12
   computed: {
12
   computed: {
13
     key() {
13
     key() {
14
-      return this.$route.fullPath
14
+      return this.$route.path
15
     }
15
     }
16
   }
16
   }
17
 }
17
 }