mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-06 03:58:00 +08:00
🐛修复路由bug
This commit is contained in:
parent
f1f3bd6cfc
commit
5c914b68f8
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user