@umijs/plugins 4.0.27 → 4.0.28

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.
Files changed (2) hide show
  1. package/dist/layout.js +4 -4
  2. package/package.json +3 -3
package/dist/layout.js CHANGED
@@ -254,8 +254,8 @@ const { formatMessage } = useIntl();
254
254
  >
255
255
  <Exception
256
256
  route={matchedRoute}
257
- notFound={runtimeConfig.notFound}
258
- noAccessible={runtimeConfig.noAccessible}
257
+ notFound={runtimeConfig?.notFound}
258
+ noAccessible={runtimeConfig?.noAccessible}
259
259
  >
260
260
  {runtimeConfig.childrenRender
261
261
  ? runtimeConfig.childrenRender(<Outlet />, props)
@@ -621,9 +621,9 @@ const Exception: React.FC<{
621
621
  // render custom 404
622
622
  (!props.route && (props.noFound || props.notFound)) ||
623
623
  // render custom 403
624
- (props.route.unaccessible && (props.unAccessible || props.noAccessible)) ||
624
+ (props.route?.unaccessible && (props.unAccessible || props.noAccessible)) ||
625
625
  // render default exception
626
- ((!props.route || props.route.unaccessible) && (
626
+ ((!props.route || props.route?.unaccessible) && (
627
627
  <Result
628
628
  status={props.route ? '403' : '404'}
629
629
  title={props.route ? '403' : '404'}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugins",
3
- "version": "4.0.27",
3
+ "version": "4.0.28",
4
4
  "description": "@umijs/plugins",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/plugins#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -27,7 +27,7 @@
27
27
  "@ant-design/antd-theme-variable": "^1.0.0",
28
28
  "@ant-design/icons": "^4.7.0",
29
29
  "@ant-design/pro-components": "^2.0.1",
30
- "@umijs/bundler-utils": "4.0.27",
30
+ "@umijs/bundler-utils": "4.0.28",
31
31
  "@umijs/valtio": "^1.0.0",
32
32
  "antd-dayjs-webpack-plugin": "^1.0.6",
33
33
  "axios": "^0.27.2",
@@ -48,7 +48,7 @@
48
48
  "warning": "^4.0.3"
49
49
  },
50
50
  "devDependencies": {
51
- "umi": "4.0.27"
51
+ "umi": "4.0.28"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"