瀏覽代碼

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

Pan 6 年之前
父節點
當前提交
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 {
   name: 'AppMain',
   name: 'AppMain',
   computed: {
   computed: {
     key() {
     key() {
-      return this.$route.fullPath
+      return this.$route.path
     }
     }
   }
   }
 }
 }