Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: 在地图的值修改后,需要刷新地图展示 #11560

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

toddWang23
Copy link
Contributor

What

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

Why

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

How

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

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants