Files
chaoyangpc/src/main.js
2019-10-14 11:17:11 +08:00

48 lines
1.1 KiB
JavaScript

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import http from './http'
import tool from '../static/js/tool'
import ElementUI from 'element-ui'
import md5 from 'js-md5'
import VueQuillEditor from 'vue-quill-editor'
import mavonEditor from 'mavon-editor'
import htmlToPdf from './htmlToPdf'
import 'mavon-editor/dist/css/index.css'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import '../static/css/reset.css'
import '../static/css/swiper.css'
import '../static/fonts/iconfont.css'
import 'element-ui/lib/theme-chalk/index.css'
Vue.prototype.$md5 = md5
Vue.prototype.$tool = tool
Vue.prototype.$http = http
Vue.prototype.$jump = function (url) {
this.$router.push({
name: url
})
}
Vue.prototype.$jParams = function (url, parameters) {
this.$router.push({
name: url,
params: parameters
})
}
Vue.use(htmlToPdf)
Vue.use(mavonEditor)
Vue.use(VueQuillEditor)
Vue.use(ElementUI)
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')