Parcourir la source

避免渲染重复

pm il y a 9 mois
Parent
commit
ee8a2155dc
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      src/views/mes/hw/lotoStation/MapData.vue

+ 4 - 4
src/views/mes/hw/lotoStation/MapData.vue

@@ -67,7 +67,7 @@ export default {
     '$route.query.lotoId': {
       handler(newValue) {
         if (newValue) {
-          this.initKonva()
+          // this.initKonva()
           this.getIsIsolationPointPage()
           this.addPointsToLeftPointsBox()
           this.addPointsToRightPointsBox()
@@ -78,7 +78,7 @@ export default {
   beforeRouteEnter(to, from, next) {
     next(vm => {
       vm.getInfo()
-      vm.initKonva()
+      // vm.initKonva()
       vm.getIsIsolationPointPage()
       vm.addPointsToLeftPointsBox()
       vm.addPointsToRightPointsBox()
@@ -86,8 +86,8 @@ export default {
   },
   mounted() {
     this.$nextTick(()=>{
-      // this.getInfo()
-      this.initKonva();
+      this.getInfo()
+      // this.initKonva();
       this.getIsIsolationPointPage()
       this.addPointsToRightPointsBox()
       this.addPointsToLeftPointsBox()