|
|
@@ -175,7 +175,7 @@ export const getRouterData = (app) => {
|
|
|
// Regular match item name
|
|
|
// eg. router /user/:id === /user/chen
|
|
|
const pathRegexp = pathToRegexp(path);
|
|
|
- const menuKey = Object.keys(menuData).find(key => pathRegexp.test(`/${key}`));
|
|
|
+ const menuKey = Object.keys(menuData).find(key => pathRegexp.test(`${key}`));
|
|
|
let menuItem = {};
|
|
|
// If menuKey is not empty
|
|
|
if (menuKey) {
|