|
@@ -30,7 +30,19 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- hotspotList: window.myHotList
|
|
|
|
|
|
+ hotspotList: window.myHotList,
|
|
|
|
+ intervalId: null,
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ if (!window.myHotList) {
|
|
|
|
+ this.intervalId = setInterval(() => {
|
|
|
|
+ if (window.myHotList) {
|
|
|
|
+ this.hotspotList = window.myHotList
|
|
|
|
+ clearInterval(this.intervalId)
|
|
|
|
+ } else {
|
|
|
|
+ }
|
|
|
|
+ }, 300)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|