diff --git a/pages/component/map/map.uvue b/pages/component/map/map.uvue index 0ff2de49b3516f3e2063f983205ebc8eeaf305e7..294b95f19bc150dff2e8d5e8f06677519ab0916f 100644 --- a/pages/component/map/map.uvue +++ b/pages/component/map/map.uvue @@ -634,11 +634,18 @@ }) } - const maptap = (e : UniMapTapEvent) => { + const maptap = (e : UniMapTapEvent) => { + // #ifdef WEB + uni.showModal({ + content: 'web端map组件tap事件不支持返回经纬度' + }); + // #endif + // #ifndef WEB // console.log('点击地图时触发',e) uni.showModal({ content: JSON.stringify(e.detail) - }); + }); + // #endif }; const onmarkertap = (e : UniMapMarkerTapEvent) => {