How to execute the method of obtaining data in the component after Mini Program page refresh monitoring

I passed a refresh status value to the component on the page. If the page is refreshed, the component receives the refresh status value, but how does the component perform the refresh defined in methods after receiving it?

Apr.05,2021

I also encountered the same question


found another way to implement it, that is, the method of executing the child component directly in the parent component, but not in the child component.
see https://www.cnblogs.com/beile.


the same question. The data is updated after the page is refreshed, but the data in the component is not updated, so it is not updated and displayed

.
Menu