소스 검색

fix:地图逻辑

chenzhen2 1 년 전
부모
커밋
35eaaa0711
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/packagesEnv/pages/intelligentControl/home2.wpy

+ 3 - 1
src/packagesEnv/pages/intelligentControl/home2.wpy

@@ -552,7 +552,9 @@ wepy.component({
   ready() {
     // 获取地图数据
     console.log('地图模块触发了--');
-    this.init();
+    if (this.space) {
+      this.init();
+    }
   },
   // 页面激活
   attached() {},