浏览代码

修改报错

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;