@umijs/route-utils
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -152,2 +152,6 @@ import isEqual from 'fast-deep-equal/es6/index'; | ||
.map((item = { path: '/' }) => { | ||
if (item.children && !item.routes) { | ||
// eslint-disable-next-line no-param-reassign | ||
item.routes = item.children; | ||
} | ||
const path = mergePath(item.path, parent ? parent.path : '/'); | ||
@@ -154,0 +158,0 @@ const { name } = item; |
@@ -243,2 +243,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
}; | ||
if (item.children && !item.routes) { | ||
// eslint-disable-next-line no-param-reassign | ||
item.routes = item.children; | ||
} | ||
var path = mergePath(item.path, parent ? parent.path : '/'); | ||
@@ -245,0 +251,0 @@ var name = item.name; |
@@ -264,2 +264,8 @@ "use strict"; | ||
}; | ||
if (item.children && !item.routes) { | ||
// eslint-disable-next-line no-param-reassign | ||
item.routes = item.children; | ||
} | ||
var path = mergePath(item.path, parent ? parent.path : '/'); | ||
@@ -266,0 +272,0 @@ var name = item.name; |
{ | ||
"name": "@umijs/route-utils", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Quickly process the routing of umi", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119950
2297