Today, the mpvue applet encountered a problem
The same route returns the previous page and always refreshes the data as the pageB data id
First of all, the page is refreshed because the method to obtain data should be placed in the mounted life cycle after mounting.
Secondly, the answer is found below,
but clearing the data here will cause problems.
- Image loading problem, this Baidu to the solution img plus v-if
2... forgot
, but I use this method to invalid return when the ID is still pageB id
Correct answer here
Insert image description here
Link: https://github.com/Meituan-Dianping/mpvue/issues/140#issuecomment-403737819