Explorar o código

:bug:修复路由bug

chuzhixin %!s(int64=4) %!d(string=hai) anos
pai
achega
5c914b68f8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/utils/handleRoutes.js

+ 1 - 1
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;
         }