From 991ffdad88541c2bc5e86da11548e672fe2d1014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E4=BA=8C=E7=8C=9B?= Date: Fri, 6 Dec 2019 14:16:26 +0800 Subject: [PATCH] F web fix bug --- spug_web/src/libs/router.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 => )} )