@yeeyoon/library 3.4.1 → 3.4.4

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
 
@@ -29,10 +30,15 @@ const ProductListMenu = (props) => {
29
30
  if (item.code == 200000730 || item.code == 200000731) {
30
31
  openModal(item.platforms[0].forwardDomainName);
31
32
  } else {
32
- if (item.code == 200000729 || item.code == 200000728) {
33
+ if (
34
+ item.code == 200000729 ||
35
+ item.code == 200000728 ||
36
+ item.code === 200000724
37
+ ) {
33
38
  let url = '';
34
39
  if (item.code == 200000729) url = getCollabRedirectUrl();
35
40
  if (item.code == 200000728) url = getBpmRedirectUrl();
41
+ if (item.code === 200000724) url = HOST_MMS;
36
42
  link.setAttribute(
37
43
  'href',
38
44
  `${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',
@@ -139,7 +140,8 @@ console.log(
139
140
  `HOST_IAM: ${HOST_IAM}\n`,
140
141
  `HOST_COLLAB: ${HOST_COLLAB}\n`,
141
142
  `HOST_BPM: ${HOST_BPM}\n`,
142
- `HOST_BPM: ${HOST_PORTRAIT}\n`,
143
+ `HOST_MMS: ${HOST_MMS}\n`,
144
+ `HOST_PORTRAIT: ${HOST_PORTRAIT}\n`,
143
145
  `HOST_PROFILE_TASK: ${HOST_PROFILE_TASK}\n`,
144
146
  `HOST_PROFILE_DASH_BOARD: ${HOST_PROFILE_DASH_BOARD}\n`,
145
147
  `HOST_PROFILE_USER: ${HOST_PROFILE_USER}\n`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "3.4.1",
3
+ "version": "3.4.4",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {