@umijs/route-utils
Advanced tools
Comparing version 2.1.5 to 2.2.0
@@ -129,6 +129,2 @@ import isEqual from 'fast-deep-equal/es6/react'; | ||
return true; | ||
if (item.path === '*') | ||
return false; | ||
if (item.path === '/*') | ||
return false; | ||
if (item.path) | ||
@@ -164,2 +160,8 @@ return true; | ||
} | ||
if (item.path === '*') { | ||
item.path = '.'; | ||
} | ||
if (item.path === '/*') { | ||
item.path = '.'; | ||
} | ||
return item; | ||
@@ -166,0 +168,0 @@ }) |
@@ -221,4 +221,2 @@ 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 (notNullArray(item.children)) return true; | ||
if (item.path === '*') return false; | ||
if (item.path === '/*') return false; | ||
if (item.path) return true; | ||
@@ -254,2 +252,10 @@ if (item.layout) return true; // 重定向 | ||
if (item.path === '*') { | ||
item.path = '.'; | ||
} | ||
if (item.path === '/*') { | ||
item.path = '.'; | ||
} | ||
return item; | ||
@@ -256,0 +262,0 @@ }).map(function () { |
@@ -244,4 +244,2 @@ "use strict"; | ||
if (notNullArray(item.children)) return true; | ||
if (item.path === '*') return false; | ||
if (item.path === '/*') return false; | ||
if (item.path) return true; | ||
@@ -277,2 +275,10 @@ if (item.layout) return true; // 重定向 | ||
if (item.path === '*') { | ||
item.path = '.'; | ||
} | ||
if (item.path === '/*') { | ||
item.path = '.'; | ||
} | ||
return item; | ||
@@ -279,0 +285,0 @@ }).map(function () { |
{ | ||
"name": "@umijs/route-utils", | ||
"version": "2.1.5", | ||
"version": "2.2.0", | ||
"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
123795
2349