소스 검색

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

Pan 5 년 전
부모
커밋
7aef039149
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/layout/components/AppMain.vue

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

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