rt;
now there are two pages An and B, in which page A has a watch
listening, and page b is empty. When I switch routes, first switch from page A to page B, and then switch back to page A, then the function in watch
will be triggered twice. Continue the switch in the previous step, and the number of triggers will continue to be superimposed. The key point is that I have to switch back to page A.
if I create a new C page, the switching between B page and C page will not cause the function in watch
to trigger superposition. It will only be superimposed once when I switch back to page A, and there is no limit to the number of overlays.
I hope the boss will analyze the reason.
PS:vue version: 2.5.2
< hr >initially suspected to be related to vue-router