@yeeyoon/library 3.6.9 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/utils/request.js +6 -6
- package/package.json +1 -1
package/lib/utils/request.js
CHANGED
@@ -43,12 +43,12 @@ rest && ls.set(REST_KEY, JSON.stringify(rest));
|
|
43
43
|
/** 异常处理程序 */
|
44
44
|
|
45
45
|
const backToIam = () => {
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
46
|
+
const { origin, pathname } = window.location;
|
47
|
+
if (origin.indexOf(HOST_HUASHAN_BPM) > -1) {
|
48
|
+
window.location.href = HOST_HUASHAN_LOGIN;
|
49
|
+
} else {
|
50
|
+
window.location.href = `${HOST_IAM}?redirect=${origin}${pathname}`;
|
51
|
+
}
|
52
52
|
};
|
53
53
|
|
54
54
|
const errorHandler = (error) => {
|