vue mobile terminal binding click events fail

Making a list when the list will need to click on the list of information output to the <li> to add a very simple @click, but no response.

The reason is the use of better-scroll, by default it will prevent touch event. So in the configuration you need to add click: true

mounted () {
    this.scroll = new BScroll(this.$refs.search, {mouseWheel: true, click: true, tap: true})
  }

  

Guess you like

Origin www.cnblogs.com/ss-wdp/p/10954895.html