cfel-base-components 2.6.2 → 2.6.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfel-base-components",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "cfel-base-components",
5
5
  "main": "/src/index.tsx",
6
6
  "types": "src/index.d.ts",
@@ -63,7 +63,7 @@ instance.interceptors.response.use(
63
63
  })
64
64
  // 如果后端在非2xx响应中也返回了业务 errorCode,处理 PRODUCT_NOT_REGISTRY
65
65
  const respData = response?.data || {}
66
- if (respData && respData.errorCode === 'PRODUCT_NOT_REGISTRY') {
66
+ if ((respData && respData.errorCode === 'PRODUCT_NOT_REGISTRY') || respData.errorCode === 'ACCESS_DENIED') {
67
67
  if (typeof (window as any).showProductNotRegisteredOverlay === 'function') {
68
68
  ;(window as any).showProductNotRegisteredOverlay({
69
69
  onAction: () => {},