@umijs/route-utils
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -131,2 +131,4 @@ import isEqual from 'fast-deep-equal/es6/react'; | ||
return true; | ||
if (item.originPath) | ||
return true; | ||
if (item.layout) | ||
@@ -166,2 +168,5 @@ return true; | ||
} | ||
if (!item.path && item.originPath) { | ||
item.path = item.originPath; | ||
} | ||
return item; | ||
@@ -168,0 +173,0 @@ }) |
@@ -222,2 +222,3 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
if (item.path) return true; | ||
if (item.originPath) return true; | ||
if (item.layout) return true; // 重定向 | ||
@@ -260,2 +261,6 @@ | ||
if (!item.path && item.originPath) { | ||
item.path = item.originPath; | ||
} | ||
return item; | ||
@@ -262,0 +267,0 @@ }).map(function () { |
@@ -245,2 +245,3 @@ "use strict"; | ||
if (item.path) return true; | ||
if (item.originPath) return true; | ||
if (item.layout) return true; // 重定向 | ||
@@ -283,2 +284,6 @@ | ||
if (!item.path && item.originPath) { | ||
item.path = item.originPath; | ||
} | ||
return item; | ||
@@ -285,0 +290,0 @@ }).map(function () { |
{ | ||
"name": "@umijs/route-utils", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"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
124340
2362