@yeeyoon/library 3.5.9 → 3.6.2

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,7 +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
+ import { HOST_WMS } from '../../../../config/env';
11
11
 
12
12
  const { SubMenu } = Menu;
13
13
 
@@ -25,7 +25,7 @@ const ProductListMenu = (props) => {
25
25
  let link = document.body.appendChild(_link);
26
26
  link.setAttribute('target', '_blank');
27
27
  if (item.code === 200000724) {
28
- url = HOST_MMS;
28
+ url = HOST_WMS;
29
29
  link.setAttribute(
30
30
  'href',
31
31
  `${url}?token=${ls.get('X-Auth-Token')}&tenantId=${tenantId}`
@@ -41,7 +41,7 @@ import {
41
41
  import LogoProfile from './assets/profile.svg';
42
42
  import LogoCollab from './assets/collab.svg';
43
43
  import LogoBpm from './assets/bpm.svg';
44
- import LogoMms from './assets/mms.svg';
44
+ import LogoWms from './assets/mms.svg';
45
45
 
46
46
  import styles from './index.less';
47
47
 
@@ -233,9 +233,9 @@ const Header = (props) => {
233
233
  logo: LogoBpm,
234
234
  name: '周转物资协同管理平台',
235
235
  };
236
- case 'mms':
236
+ case 'wms':
237
237
  return {
238
- logo: LogoMms,
238
+ logo: LogoWms,
239
239
  name: '智慧仓储',
240
240
  };
241
241
  }
@@ -306,7 +306,9 @@ const Header = (props) => {
306
306
  <IconTodo style={IconStyle} />
307
307
  任务中心
308
308
  </span>
309
- {(productName === 'bpm' || productName === 'mms') && (
309
+ {(productName === 'bpm' ||
310
+ productName === 'wms' ||
311
+ productName === 'profile') && (
310
312
  <span
311
313
  className={styles['comp-header__icon']}
312
314
  onClick={() => {
@@ -315,7 +317,7 @@ const Header = (props) => {
315
317
  case 'bpm':
316
318
  system = 'bpm';
317
319
  break;
318
- case 'mms':
320
+ case 'wms':
319
321
  system = 'wms';
320
322
  break;
321
323
  }
package/lib/config/env.js CHANGED
@@ -112,7 +112,7 @@ export const HOST_OFFICIAL = getEnvHost('official');
112
112
  export const HOST_IAM = getEnvHost('iam', '/login');
113
113
  export const HOST_COLLAB = getEnvHost('collab');
114
114
  export const HOST_BPM = getEnvHost('bpm');
115
- export const HOST_MMS = getEnvHost('mms');
115
+ export const HOST_WMS = getEnvHost('wms');
116
116
  export const HOST_PORTRAIT = getEnvHost('portrait');
117
117
  export const HOST_PROFILE_TASK = getEnvHost(
118
118
  'profile',
@@ -154,7 +154,7 @@ console.log(
154
154
  `HOST_IAM: ${HOST_IAM}\n`,
155
155
  `HOST_COLLAB: ${HOST_COLLAB}\n`,
156
156
  `HOST_BPM: ${HOST_BPM}\n`,
157
- `HOST_MMS: ${HOST_MMS}\n`,
157
+ `HOST_WMS: ${HOST_WMS}\n`,
158
158
  `HOST_PORTRAIT: ${HOST_PORTRAIT}\n`,
159
159
  `HOST_PROFILE_TASK: ${HOST_PROFILE_TASK}\n`,
160
160
  `HOST_PROFILE_DASH_BOARD: ${HOST_PROFILE_DASH_BOARD}\n`,