From 7aef0391491312a6c7b3d26a07810ed9b906becd Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 27 May 2019 17:01:11 +0800 Subject: [PATCH] perf: use $route.path to the router-view key --- src/layout/components/AppMain.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index fd514fa..f6a3286 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -11,7 +11,7 @@ export default { name: 'AppMain', computed: { key() { - return this.$route.fullPath + return this.$route.path } } }