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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.1.67",
3
+ "version": "1.1.68",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -41,7 +41,8 @@ service.interceptors.response.use(
41
41
  return response.data
42
42
  }
43
43
  if (res.code === 401) {
44
- store.dispatch('logOut')
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
  }
@@ -46,7 +46,9 @@ export default new Vuex.Store({
46
46
  * @param {} param0
47
47
  */
48
48
  logOut({commit}){
49
+ alert('会话过期3');
49
50
  if(window.$wujie){
51
+ alert('会话过期4');
50
52
  //通知主应用会员过期重新登陆
51
53
  window.$wujie.bus.$emit(
52
54
  'subAppLoginOut',window.$wujie.props.webAppCode