@yeeyoon/library 2.9.9 → 3.0.1
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.
- package/lib/utils/request.js +3 -1
- package/package.json +1 -1
package/lib/utils/request.js
CHANGED
@@ -96,7 +96,9 @@ request.interceptors.response.use(async (response) => {
|
|
96
96
|
m === 'token不一致'
|
97
97
|
) {
|
98
98
|
window.top.postMessage('tcTokenExpired', '*'); // 通知宿主窗口
|
99
|
-
|
99
|
+
setTimeout(() => {
|
100
|
+
backToIam();
|
101
|
+
}, 1000);
|
100
102
|
}
|
101
103
|
return resp;
|
102
104
|
} else if (success && (!code || code === 200)) {
|