Ver Fonte

feat: 增加 gis目录

zhangys36 há 2 anos atrás
pai
commit
d12f9dd581
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      src/views/dashboard-screen/chart-map/chartMap.vue

+ 5 - 2
src/views/dashboard-screen/chart-map/chartMap.vue

@@ -11,8 +11,11 @@ export default {
   name: 'ChartMap',
   created() {
     window['mapFrame'] = this.$refs.mapFrame
-
-    this.loadDone()
+  },
+  mounted() {
+    this.$refs.mapFrame.onload = () => {
+      this.loadDone()
+    }
   },
   methods: {
     loadDone() {