forked from didi/cube-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
28 lines (23 loc) · 777 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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 VueRouter from 'vue-router'
import Cube from '../src/index'
import App from './App.vue'
import router from './router'
import FastClick from 'fastclick'
import VueLazyload from 'vue-lazyload'
window.Promise = window.Promise || Promise
FastClick.attach(document.body) // hack the active pseudo-classes failure caused by -webkit-overflow-scrolling touch
/* eslint-disable no-unused-vars */
// import vConsole from 'vconsole'
Vue.use(Cube)
Vue.use(VueRouter)
Vue.use(VueLazyload)
/* eslint-disable no-new */
new Vue({
router,
render(createElement) {
return createElement(App)
}
}).$mount('#app')