webapp在手机上点击有300ms的延迟,于是引入fastclick解决,可是全局使用之后,点菜按钮全部失效,注释掉引用又回复正常了,不知道是不是相互冲突了?
代码如下:
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import App from './App' import FastClick from 'fastclick'; import router from './router' import Vue_resource from 'vue-resource' import axios from 'axios' import './common/style/index.less' Vue.config.productionTip = false; FastClick.attach(document.body); Vue.prototype.$http = axios /* eslint-disable no-new */ new Vue({ el: '#app', router, render: h => h(App), data: { eventHub: new Vue() } }) router.push('/goods')
掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp
了解课程