vue2-client 1.8.116 → 1.8.117
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/CHANGELOG.md +2 -2
- package/package.json +1 -1
- package/src/utils/request.js +8 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/utils/request.js
CHANGED
|
@@ -188,7 +188,13 @@ function loadInterceptors () {
|
|
|
188
188
|
if (code === 401) {
|
|
189
189
|
if (!isReloginShow) {
|
|
190
190
|
isReloginShow = true
|
|
191
|
-
|
|
191
|
+
if (window.__MICRO_APP_ENVIRONMENT__) {
|
|
192
|
+
logout().then(() => {
|
|
193
|
+
isReloginShow = false
|
|
194
|
+
location.href = '/login'
|
|
195
|
+
})
|
|
196
|
+
} else {
|
|
197
|
+
notification.open({
|
|
192
198
|
message: '系统提示',
|
|
193
199
|
description: '登录状态已过期,请重新登录',
|
|
194
200
|
btn: h => {
|
|
@@ -216,6 +222,7 @@ function loadInterceptors () {
|
|
|
216
222
|
isReloginShow = false
|
|
217
223
|
}
|
|
218
224
|
})
|
|
225
|
+
}
|
|
219
226
|
}
|
|
220
227
|
} else if (code === 500) {
|
|
221
228
|
if (requestUrl !== '/login') {
|