소스 검색

修改报错

haojianlong 4 년 전
부모
커밋
eaf8a002ca
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/maintain/space/components/spaceGraph.vue

+ 2 - 1
src/views/maintain/space/components/spaceGraph.vue

@@ -122,7 +122,7 @@ export default class spaceGraph extends Vue {
     mounted(): void {
         this.canvasWidth = this.$refs.graphContainer.offsetWidth;
         this.canvasHeight = this.$refs.graphContainer.offsetHeight;
-        this.getGraph();
+        // this.getGraph();
     }
     // 父组件调用查询楼层底图
     getData(floor: any, zoneType: any) {
@@ -189,6 +189,7 @@ export default class spaceGraph extends Vue {
         this.canvasLoading = true;
         this.clearGraphy();
         this.scene = null;
+        console.log(this.floorKey);
         scene.loadUrl(this.floorKey).then((res) => {
             if (this.view) {
                 this.view.scene = scene;