doway-coms 1.1.67 → 1.1.68
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/package.json
CHANGED
|
@@ -41,7 +41,8 @@ service.interceptors.response.use(
|
|
|
41
41
|
return response.data
|
|
42
42
|
}
|
|
43
43
|
if (res.code === 401) {
|
|
44
|
-
|
|
44
|
+
alert('会话过期2');
|
|
45
|
+
store.dispatch('logOut')
|
|
45
46
|
return Promise.reject(res.msg)
|
|
46
47
|
}
|
|
47
48
|
notification.error({
|
|
@@ -59,6 +60,7 @@ service.interceptors.response.use(
|
|
|
59
60
|
},
|
|
60
61
|
error => {
|
|
61
62
|
if (error.response && error.response.status === 401) {
|
|
63
|
+
alert('会话过期1');
|
|
62
64
|
store.dispatch('logOut').then(() => {})
|
|
63
65
|
return
|
|
64
66
|
}
|
package/packages/utils/store.js
CHANGED