@umijs/route-utils
Advanced tools
Comparing version 1.0.31 to 1.0.32
@@ -154,2 +154,3 @@ import isEqual from 'lodash.isequal'; | ||
...restParent, | ||
menu: undefined, | ||
...item, | ||
@@ -172,2 +173,5 @@ path, | ||
} | ||
if (finallyItem.menu === undefined) { | ||
delete finallyItem.menu; | ||
} | ||
if (item.routes || item.children) { | ||
@@ -174,0 +178,0 @@ const formatterChildren = formatter({ |
@@ -254,3 +254,5 @@ 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); } | ||
var finallyItem = _objectSpread(_objectSpread(_objectSpread({}, restParent), item), {}, { | ||
var finallyItem = _objectSpread(_objectSpread(_objectSpread({}, restParent), {}, { | ||
menu: undefined | ||
}, item), {}, { | ||
path: path, | ||
@@ -273,2 +275,6 @@ locale: locale, | ||
if (finallyItem.menu === undefined) { | ||
delete finallyItem.menu; | ||
} | ||
if (item.routes || item.children) { | ||
@@ -275,0 +281,0 @@ var formatterChildren = formatter(_objectSpread(_objectSpread({}, props), {}, { |
@@ -276,3 +276,5 @@ "use strict"; | ||
var finallyItem = _objectSpread(_objectSpread(_objectSpread({}, restParent), item), {}, { | ||
var finallyItem = _objectSpread(_objectSpread(_objectSpread({}, restParent), {}, { | ||
menu: undefined | ||
}, item), {}, { | ||
path: path, | ||
@@ -295,2 +297,6 @@ locale: locale, | ||
if (finallyItem.menu === undefined) { | ||
delete finallyItem.menu; | ||
} | ||
if (item.routes || item.children) { | ||
@@ -297,0 +303,0 @@ var formatterChildren = formatter(_objectSpread(_objectSpread({}, props), {}, { |
{ | ||
"name": "@umijs/route-utils", | ||
"version": "1.0.31", | ||
"version": "1.0.32", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
82817
1415
0