doway-coms 1.1.68 → 1.1.69
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,7 @@ service.interceptors.response.use(
|
|
|
41
41
|
return response.data
|
|
42
42
|
}
|
|
43
43
|
if (res.code === 401) {
|
|
44
|
-
alert('会话过期2');
|
|
44
|
+
// alert('会话过期2');
|
|
45
45
|
store.dispatch('logOut')
|
|
46
46
|
return Promise.reject(res.msg)
|
|
47
47
|
}
|
|
@@ -60,7 +60,7 @@ service.interceptors.response.use(
|
|
|
60
60
|
},
|
|
61
61
|
error => {
|
|
62
62
|
if (error.response && error.response.status === 401) {
|
|
63
|
-
alert('会话过期1');
|
|
63
|
+
// alert('会话过期1');
|
|
64
64
|
store.dispatch('logOut').then(() => {})
|
|
65
65
|
return
|
|
66
66
|
}
|
package/packages/utils/store.js
CHANGED
|
@@ -46,9 +46,9 @@ export default new Vuex.Store({
|
|
|
46
46
|
* @param {} param0
|
|
47
47
|
*/
|
|
48
48
|
logOut({commit}){
|
|
49
|
-
alert('会话过期3');
|
|
49
|
+
// alert('会话过期3');
|
|
50
50
|
if(window.$wujie){
|
|
51
|
-
alert('会话过期4');
|
|
51
|
+
// alert('会话过期4');
|
|
52
52
|
//通知主应用会员过期重新登陆
|
|
53
53
|
window.$wujie.bus.$emit(
|
|
54
54
|
'subAppLoginOut',window.$wujie.props.webAppCode
|