فهرست منبع

智能选址前端

liutao 1 ماه پیش
والد
کامیت
be1dcb7bf4

+ 1 - 1
web_ui/src/views/industrial-land/AiIndustriaLandDetail.vue

@@ -517,7 +517,7 @@ export default {
     this.$nextTick(() => {
       this.activeIndex = 0;
       this.initMap();
-      // this.mockTestData();
+      this.mockTestData();
     });
   },
   created() {

+ 4 - 0
web_ui/src/views/industrial-land/ZnxzDetail.vue

@@ -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,