diff --git a/spug_web/src/libs/router.js b/spug_web/src/libs/router.js index c719ef3..3aaa757 100644 --- a/spug_web/src/libs/router.js +++ b/spug_web/src/libs/router.js @@ -40,7 +40,7 @@ export class Router extends React.Component { initialRoutes() { for (let moduleRoute of moduleRoutes) { for (let route of moduleRoute['routes']) { - route['path'] = moduleRoute['prefix'] + route['path']; + route['fullPath'] = moduleRoute['prefix'] + route['path']; this.routes.push(route) } } @@ -49,7 +49,7 @@ export class Router extends React.Component { render() { return ( - {this.routes.map(route => )} + {this.routes.map(route => )} )