Skip to content
Snippets Groups Projects
Commit fe55da40 authored by yms's avatar yms
Browse files

feat: 更新

parent 9513f053
Branches
No related tags found
No related merge requests found
......@@ -60,14 +60,16 @@ const MapView: React.ForwardRefRenderFunction<
() => {
if (!containerRef.current) return;
const { width, height } = containerRef.current?.getBoundingClientRect();
console.log('地图宽高变更');
setMapSize({
width: width,
height: height,
});
if (width !== previous?.width || height !== previous?.height) {
setMapSize({
width: width,
height: height,
});
}
},
{
wait: 500,
wait: 1000,
},
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment