@yeeyoon/library 3.5.7 → 3.5.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ import qs from 'qs';
4
4
  import ls from 'local-storage';
5
5
  import { notification } from 'antd';
6
6
 
7
- import { HOST_IAM } from '../config/env';
7
+ import { HOST_IAM, HOST_HUASHAN_BPM, HOST_HUASHAN_LOGIN } from '../config/env';
8
8
 
9
9
  const TOKEN_KEY = 'X-Auth-Token';
10
10
  const ID_KEY = 'X-Auth-Id';
@@ -44,8 +44,8 @@ rest && ls.set(REST_KEY, JSON.stringify(rest));
44
44
 
45
45
  const backToIam = () => {
46
46
  const { origin, pathname } = window.location;
47
- if (origin.indexOf('huashan') > -1) {
48
- window.location.href = 'https://testing-huashan-login.yeeyoon.com/login';
47
+ if (origin.indexOf(HOST_HUASHAN_BPM) > -1) {
48
+ window.location.href = HOST_HUASHAN_LOGIN;
49
49
  } else {
50
50
  window.location.href = `${HOST_IAM}?redirect=${origin}${pathname}`;
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "3.5.7",
3
+ "version": "3.5.8",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {