先执行安装fastclick的命令。

npm install fastclick -S

之后,在main.js中引入,并绑定到body。

import FastClick from 'fastclick'

FastClick.attach(document.body);