@bit-sun/business-component 2.4.31-alpha.5 → 2.4.31-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -17268,7 +17268,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17268
17268
|
return pathToRegexp(itemRoute.key || '').test(route.pathname);
|
|
17269
17269
|
}
|
|
17270
17270
|
// 当路由路径包含'all-general-documents'时,按通用单据处理
|
|
17271
|
-
if ((_route$pathname2 = route.pathname) === null || _route$pathname2 === void 0 ? void 0 : _route$pathname2.includes('all-general-documents')) {
|
|
17271
|
+
if (((_route$pathname2 = route.pathname) === null || _route$pathname2 === void 0 ? void 0 : _route$pathname2.includes('all-general-documents')) && shouldUseAuth()) {
|
|
17272
17272
|
// 检查路由路径是否匹配路由项的键,并且路径中包含至少一个通用单据ID
|
|
17273
17273
|
return pathToRegexp(itemRoute.key || '').test(route.pathname) && docsId.some(function (item) {
|
|
17274
17274
|
return route.pathname.includes(item);
|
package/dist/index.js
CHANGED
|
@@ -17288,7 +17288,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17288
17288
|
return pathToRegexp(itemRoute.key || '').test(route.pathname);
|
|
17289
17289
|
}
|
|
17290
17290
|
// 当路由路径包含'all-general-documents'时,按通用单据处理
|
|
17291
|
-
if ((_route$pathname2 = route.pathname) === null || _route$pathname2 === void 0 ? void 0 : _route$pathname2.includes('all-general-documents')) {
|
|
17291
|
+
if (((_route$pathname2 = route.pathname) === null || _route$pathname2 === void 0 ? void 0 : _route$pathname2.includes('all-general-documents')) && shouldUseAuth()) {
|
|
17292
17292
|
// 检查路由路径是否匹配路由项的键,并且路径中包含至少一个通用单据ID
|
|
17293
17293
|
return pathToRegexp(itemRoute.key || '').test(route.pathname) && docsId.some(function (item) {
|
|
17294
17294
|
return route.pathname.includes(item);
|
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@ import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
|
45
45
|
import ENUM from '@/utils/enumConfig';
|
|
46
46
|
import { memoizeOneFormatter } from '@/utils/utils';
|
|
47
47
|
import Item from 'antd/lib/list/Item';
|
|
48
|
-
import { getLimitMenuDataKey } from '@/utils';
|
|
48
|
+
import { getLimitMenuDataKey, shouldUseAuth } from '@/utils';
|
|
49
49
|
import NoFoundPage from '@/components/Functional/AccessWrapper';
|
|
50
50
|
|
|
51
51
|
const { TabPane } = Tabs;
|
|
@@ -448,7 +448,7 @@ class BasicLayout extends React.PureComponent {
|
|
|
448
448
|
return pathToRegexp(itemRoute.key || '').test(route.pathname);
|
|
449
449
|
}
|
|
450
450
|
// 当路由路径包含'all-general-documents'时,按通用单据处理
|
|
451
|
-
if (route.pathname?.includes('all-general-documents')) {
|
|
451
|
+
if (route.pathname?.includes('all-general-documents') && shouldUseAuth()) {
|
|
452
452
|
// 检查路由路径是否匹配路由项的键,并且路径中包含至少一个通用单据ID
|
|
453
453
|
return pathToRegexp(itemRoute.key || '').test(route.pathname) && docsId.some(item => route.pathname.includes(item));
|
|
454
454
|
}
|