From 5c914b68f8b35a9e3c8fd9fada81cfd37d4bdb2d Mon Sep 17 00:00:00 2001 From: chuzhixin <1204505056@qq.com> Date: Mon, 14 Sep 2020 14:29:35 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=E4=BF=AE=E5=A4=8D=E8=B7=AF=E7=94=B1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/handleRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/handleRoutes.js b/src/utils/handleRoutes.js index 1b037da..e62c807 100644 --- a/src/utils/handleRoutes.js +++ b/src/utils/handleRoutes.js @@ -22,7 +22,7 @@ export function filterAllRoutes(constantRoutes) { } else if (new RegExp("^/.*$").test(route.component)) { path = "views" + route.component; } else if (new RegExp("^@views/.*$").test(route.component)) { - path = route.component.str.slice(2); + path = route.component.slice(1); } else { path = "views/" + route.component; }