The Vue click click event is invalid after one click.

A problem was encountered while using vuex to share data

The

code is shown in the figure above. Figure 1 and figure 2 are in the same vue file, and figure 3 is written in the js file, but after it is written, you must re-npm run start, the click event before it can be executed, and only once and then refresh will be invalid. Find out the reason! Thank you!

Mar.10,2021

my problem is that this happens when you use better-scroll, and the default click is false, which is fine when true distributes a click event instead.

Menu