提交 3d8e2c20 编写于 作者: Q qiang

fix: Marker.iconPath error log

上级 4817e1b0
......@@ -232,7 +232,11 @@ export default {
}
}
}
img.src = getRealPath(option.iconPath)
if (option.iconPath) {
img.src = getRealPath(option.iconPath)
} else {
console.error('Marker.iconPath is required.')
}
},
removeMarker () {
const marker = this._marker
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册