🐛修复路由bug

This commit is contained in:
chuzhixin 2020-09-14 14:29:35 +08:00
parent f1f3bd6cfc
commit 5c914b68f8

View File

@ -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;
}