mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-26 02:56:35 +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)) {
|
} 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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user