lilei 2 years ago
parent
commit
a547956c87
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/views/bigScreen/realTimeSalesReport/center-map.vue

+ 2 - 3
src/views/bigScreen/realTimeSalesReport/center-map.vue

@@ -93,9 +93,8 @@ export default {
       if (mapjson) {
         mapjson = mapjson.geoJSON
       } else {
-        mapjson = await GETNOBASE(`../../map-geojson/${geoname}.json`).then((res) => {
-          return res
-        })
+        mapjson = await GETNOBASE(`../../map-geojson/${geoname}.json`).then((res) => res)
+        console.log(mapjson, 'mapjson')
         echarts.registerMap(name, mapjson)
       }
       const cityCenter = {}