Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

小程序第二次进入页面后,数据更新后没有触发watch #5205

Open
Bo-Teng opened this issue Oct 28, 2024 · 0 comments
Open

小程序第二次进入页面后,数据更新后没有触发watch #5205

Bo-Teng opened this issue Oct 28, 2024 · 0 comments

Comments

@Bo-Teng
Copy link

Bo-Teng commented Oct 28, 2024

首次进入页面时数据发送改变时可以触发watch的,但是返回上级页面后再进入后数据更新无法触发watch。
watch调用是在外部函数中:
Snipaste_2024-10-28_16-37-09
调试发现在数据更新后对应的依赖集合相比第一次要少了一个
image

Vue版本:3
Hbuild x: 4.28
基础库:3.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant