init
This commit is contained in:
29
src/main.js
Normal file
29
src/main.js
Normal file
@@ -0,0 +1,29 @@
|
||||
// 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 router from './router'
|
||||
import store from './vuex/store'
|
||||
import '@style/reset.css'
|
||||
import '@style/layout.styl'
|
||||
import fastClick from 'fastclick'
|
||||
import { DatePicker } from 'element-ui'
|
||||
import '@config/rem.js'
|
||||
import {post} from '@config/http.js'
|
||||
import { Dialog, toast } from '@config/utils.js'
|
||||
|
||||
fastClick.attach(document.body)
|
||||
Vue.use(DatePicker)
|
||||
Vue.prototype.$post = post
|
||||
Vue.prototype.Dialog = Dialog
|
||||
Vue.prototype.toast = toast
|
||||
Vue.config.productionTip = false
|
||||
|
||||
/* eslint-disable no-new */
|
||||
new Vue({
|
||||
el: '#app',
|
||||
router,
|
||||
store,
|
||||
components: { App },
|
||||
template: '<App/>'
|
||||
})
|
||||
Reference in New Issue
Block a user