提交 e5344e37 编写于 作者: Q qiang

fix: Marker.iconPath error log

上级 e73b4b9e
......@@ -7919,7 +7919,11 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({
}
}
};
img.src = getRealPath(option.iconPath);
if (option.iconPath) {
img.src = getRealPath(option.iconPath);
} else {
console.error("Marker.iconPath is required.");
}
}
function addMarker(props3) {
marker = new maps.Marker({
......
......@@ -15332,7 +15332,11 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({
}
}
};
img.src = getRealPath(option.iconPath);
if (option.iconPath) {
img.src = getRealPath(option.iconPath);
} else {
console.error("Marker.iconPath is required.");
}
}
function addMarker(props3) {
marker = new maps2.Marker({
......
......@@ -254,7 +254,11 @@ export default /*#__PURE__*/ defineSystemComponent({
}
}
}
img.src = getRealPath(option.iconPath)
if (option.iconPath) {
img.src = getRealPath(option.iconPath)
} else {
console.error('Marker.iconPath is required.')
}
}
function addMarker(props: Props) {
marker = new maps.Marker({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册