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