vue2-client 1.6.21 → 1.6.23

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,6 +1,9 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
+ **1.6.23 -2023-04-11 @江超**
5
+ - `request.js`的响应拦截器增加了一种对非v4环境调用v4接口的兼容处理
6
+
4
7
  **1.6.20 - 1.6.21 -2023-03-29 @江超**
5
8
  - AdminHeader的HeaderSearch和HeaderNotice组件现在可以动态替换了
6
9
  - setting.config.js增加自定义组件配置参数:customizeComponent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.6.21",
3
+ "version": "1.6.23",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -10,7 +10,7 @@ async function GetGDMap () {
10
10
  version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
11
11
  plugins: ['AMap.IndexCluster','AMP.MarkerCluster', 'AMap.InfoWindow', 'AMap.HeatMap', 'AMap.HawkEye', 'AMap.DistrictSearch',
12
12
  'AMap.ToolBar', 'AMap.Geolocation',
13
- 'AMap.Geocoder', 'AMap.MarkerClusterer', 'AMap.Autocomplete'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
13
+ 'AMap.Geocoder', 'AMap.MarkerClusterer', 'AMap.AutoComplete'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
14
14
  AMapUI: {
15
15
  version: '1.1', // AMapUI 缺省 1.1
16
16
  plugins: [] // 需要加载的 AMapUI ui插件
@@ -161,7 +161,7 @@ function loadInterceptors () {
161
161
  // 判断是否为V4环境,不为compatible赋初始值
162
162
  // 其有可能是undefined未定义,或第一次使用本系统LocalStorage在初始化,获得的值为null
163
163
  const compatible = getSystemVersion()
164
- if (compatible === 'V4') {
164
+ if (compatible === 'V4' || (res.data.code && res.data.data)) {
165
165
  // 请求rul
166
166
  const requestUrl = res.config.url
167
167
  if (res.data.data) {