Commit 5c914b68 by chuzhixin

:bug:修复路由bug

parent f1f3bd6c
...@@ -22,7 +22,7 @@ export function filterAllRoutes(constantRoutes) { ...@@ -22,7 +22,7 @@ export function filterAllRoutes(constantRoutes) {
} else if (new RegExp("^/.*$").test(route.component)) { } else if (new RegExp("^/.*$").test(route.component)) {
path = "views" + route.component; path = "views" + route.component;
} else if (new RegExp("^@views/.*$").test(route.component)) { } else if (new RegExp("^@views/.*$").test(route.component)) {
path = route.component.str.slice(2); path = route.component.slice(1);
} else { } else {
path = "views/" + route.component; path = "views/" + route.component;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment