Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@toddWang23
Copy link
Contributor

What

在地图的值修改后,需要刷新地图展示

Why

做为受控组件的地图组件,在外部value变化后,地图位置不变。因为没有监听value变化

How

用componentDidUpdate监听value变化,初始化地图

@github-actions
Copy link

github-actions bot commented Feb 6, 2025

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@github-actions github-actions bot added the fix label Feb 6, 2025
@allenve allenve merged commit 2c6a663 into baidu:master Feb 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants