gy-webcode2 1.0.18 → 1.0.20

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/extend/axios.js CHANGED
@@ -79,7 +79,7 @@ http.interceptors.request.use(
79
79
  // console.log(crypto.encrypt(JSON.stringify(config.params)));
80
80
  if(config.params){
81
81
  config.params = {
82
- data:crypto.encrypt(JSON.stringify(config.params))
82
+ data:encodeURIComponent(crypto.encrypt(JSON.stringify(config.params)))
83
83
  }
84
84
  }
85
85
  }
@@ -97,7 +97,7 @@ http.interceptors.request.use(
97
97
  // console.log(crypto.encrypt(JSON.stringify(config.params)));
98
98
  if(config.params){
99
99
  config.params = {
100
- data:crypto.encrypt(JSON.stringify(config.params))
100
+ data:encodeURIComponent(crypto.encrypt(JSON.stringify(config.params)))
101
101
  }
102
102
  }
103
103
  }
@@ -136,7 +136,7 @@ http.interceptors.response.use(
136
136
  }
137
137
  }
138
138
 
139
- let statusArr = [1005,1006,1007];
139
+ let statusArr = [1005,1006,1007,1010];
140
140
  let isStatus = statusArr.find(i => i == response.data.status);
141
141
  if(isStatus){
142
142
  Cookies.remove('gy_login');
package/index.js CHANGED
@@ -13,5 +13,5 @@
13
13
  // 已使用项目 指标管理
14
14
 
15
15
  module.exports = {
16
- version :'1.0.0',
16
+ version :'1.0.20',
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gy-webcode2",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "gy前端公共代码",
5
5
  "main": "index.js",
6
6
  "scripts": {