@yeeyoon/library 3.4.0 → 3.4.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.
@@ -7,6 +7,7 @@ import ls from 'local-storage';
7
7
  import styles from './index.less';
8
8
  import { fetchSystemToken } from '../../service';
9
9
  import { IconWodechanpin, IconTuijianchanpin } from '../../../Icons';
10
+ import { HOST_MMS } from '../../../../config/env';
10
11
 
11
12
  const { SubMenu } = Menu;
12
13
 
@@ -33,6 +34,7 @@ const ProductListMenu = (props) => {
33
34
  let url = '';
34
35
  if (item.code == 200000729) url = getCollabRedirectUrl();
35
36
  if (item.code == 200000728) url = getBpmRedirectUrl();
37
+ if (item.code === 200000724) url = HOST_MMS;
36
38
  link.setAttribute(
37
39
  'href',
38
40
  `${url}?token=${ls.get('X-Auth-Token')}&tenantId=${tenantId}`
package/lib/config/env.js CHANGED
@@ -102,6 +102,7 @@ export const HOST_OFFICIAL = getEnvHost('official');
102
102
  export const HOST_IAM = getEnvHost('iam', '/login');
103
103
  export const HOST_COLLAB = getEnvHost('collab');
104
104
  export const HOST_BPM = getEnvHost('bpm');
105
+ export const HOST_MMS = getEnvHost('mms');
105
106
  export const HOST_PORTRAIT = getEnvHost('portrait');
106
107
  export const HOST_PROFILE_TASK = getEnvHost(
107
108
  'profile',
@@ -81,6 +81,9 @@ const request = extend({
81
81
  request.interceptors.response.use(async (response) => {
82
82
  const resp = await response.clone().json();
83
83
  const { data, code, message, msg, errormsg, success } = resp;
84
+ if (!data && !code && !message && !msg && !errormsg && !success) {
85
+ return response;
86
+ }
84
87
  const m = msg || message || errormsg;
85
88
  if (code !== 200 && code !== 201 && !success) {
86
89
  m !== '操作过于频繁' &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "3.4.0",
3
+ "version": "3.4.3",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {