Commit e108b4dd authored by zhangjianqian's avatar zhangjianqian

修改画管道图报错

parent c4820283
...@@ -104,8 +104,8 @@ export default { ...@@ -104,8 +104,8 @@ export default {
this.map.mouseAddMarker(); this.map.mouseAddMarker();
} }
} else { } else {
console.log(this.pipePath.length) //console.log(this.pipePath.length)
if (this.pipePath.length > 0) { if (this.pipePath!=null && this.pipePath.length > 0) {
this.map.addPipeLine({ path: this.pipePath }); this.map.addPipeLine({ path: this.pipePath });
} else { } else {
this.map.mouseAddPipeline(); this.map.mouseAddPipeline();
......
...@@ -269,6 +269,8 @@ export default { ...@@ -269,6 +269,8 @@ export default {
coordinateslist:null, coordinateslist:null,
// 遮罩层 // 遮罩层
loading: true, loading: true,
pipeList:[],
// 导出遮罩层 // 导出遮罩层
exportLoading: false, exportLoading: false,
// 选中数组 // 选中数组
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment