@@ -517,7 +517,7 @@ export default {
this.$nextTick(() => {
this.activeIndex = 0;
this.initMap();
- // this.mockTestData();
+ this.mockTestData();
});
},
created() {
@@ -1045,6 +1045,10 @@ export default {
watch: {
item: {
handler(newVal, oldVal) {
+ // Skip init if only show property changed
+ if (JSON.stringify({...newVal, show: oldVal && oldVal.show}) === JSON.stringify({...oldVal, show: oldVal && oldVal.show})) {
+ return;
+ }
this.init();
deep: true,