vue mobile end better-scroll wrap elements bind click event is invalid

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 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/tutao1995/p/12067758.html