vue2-client 1.6.23 → 1.6.25

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.6.23 -2023-04-11 @江超**
4
+ **1.6.23 - 1.6.25 -2023-04-11 @江超**
5
5
  - `request.js`的响应拦截器增加了一种对非v4环境调用v4接口的兼容处理
6
6
 
7
7
  **1.6.20 - 1.6.21 -2023-03-29 @江超**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.6.23",
3
+ "version": "1.6.25",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -161,7 +161,7 @@ function loadInterceptors () {
161
161
  // 判断是否为V4环境,不为compatible赋初始值
162
162
  // 其有可能是undefined未定义,或第一次使用本系统LocalStorage在初始化,获得的值为null
163
163
  const compatible = getSystemVersion()
164
- if (compatible === 'V4' || (res.data.code && res.data.data)) {
164
+ if (compatible === 'V4' || (res.data.code && res.data.hasOwnProperty('msg'))) {
165
165
  // 请求rul
166
166
  const requestUrl = res.config.url
167
167
  if (res.data.data) {