提交 4ce56f57 编写于 作者: fxy060608's avatar fxy060608

fix(h5): isNaN

上级 afc96e18
......@@ -161,7 +161,7 @@ export default /*#__PURE__*/ defineSystemComponent({
name: 'MapMarker',
props,
setup(props) {
const id = String(Number(props.id) !== NaN ? props.id : '')
const id = String(!isNaN(Number(props.id)) ? props.id : '')
const onMapReady: OnMapReady = inject('onMapReady') as OnMapReady
const updateMarkerLabelStyle = useMarkerLabelStyle(id)
let marker: Marker
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册