Commit 6da44736 by 张杰

增加条件判断

1 parent 58081d33
...@@ -239,9 +239,9 @@ export default { ...@@ -239,9 +239,9 @@ export default {
//this.bindEvent(); //this.bindEvent();
_this.isInitMap = true; _this.isInitMap = true;
//_this.drawPoi(); //_this.drawPoi();
if (_this.isInitFence) { console.log(_this.fenceId != 'undefined')
if (_this.isInitFence && _this.fenceId && _this.fenceId != 'undefined') {
//_this.drawFence(); //_this.drawFence();
console.log("666666666666666666666");
_this.getFence(); _this.getFence();
} }
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!