@@ -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() {