bug 修复

This commit is contained in:
BianLzhaoMin 2025-08-12 14:55:53 +08:00
parent 618be7bf0c
commit d6b503931c
1 changed files with 7 additions and 7 deletions

View File

@ -25,12 +25,7 @@
:style="{ transform: `translate(${offsetX}px, ${offsetY}px)` }"
>
<!-- 图片宽高 100% 跟随 SVG -->
<image
width="100%"
height="100%"
:href="mapInfo.mapBase64"
preserveAspectRatio="none"
/>
<image width="100%" height="100%" :href="demoImg" preserveAspectRatio="none" />
<!-- 标记的点位 -->
<circle
@ -563,6 +558,11 @@ const handleModifyPoint = () => {
id: point.id,
isAdd: point.isAdd,
}
if (point.markerAngle === null) {
message.warning('请先选择角度')
return
}
emits('onHandleAddMarker', markerInfo)
}
closeContextMenu()
@ -597,7 +597,7 @@ const addDevicePoint = (x, y, y1) => {
markerY: y, //
markerY1: y1, //
markerName: '',
markerAngle: '', //
markerAngle: null, //
markerPreset: '', //
isAdd: true,
})