ソースを参照

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',
   computed: {
     key() {
-      return this.$route.fullPath
+      return this.$route.path
     }
   }
 }