You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0 KiB

5 years ago
5 years ago
5 years ago
5 years ago
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. // 引入element
  4. import ElementUI from 'element-ui';
  5. import 'element-ui/lib/theme-chalk/index.css';
  6. // 全局配置elementui的dialog不能通过点击遮罩层关闭
  7. ElementUI.Dialog.props.closeOnClickModal.default = false
  8. Vue.use(ElementUI);
  9. // 引入封装的router
  10. import router from '@/router/index'
  11. // canvas背景插件
  12. import vueParticleLine from 'vue-particle-line'
  13. import 'vue-particle-line/dist/vue-particle-line.css'
  14. Vue.use(vueParticleLine)
  15. // 富文本插件
  16. import VueQuillEditor from 'vue-quill-editor'
  17. import 'quill/dist/quill.core.css'
  18. import 'quill/dist/quill.snow.css'
  19. import 'quill/dist/quill.bubble.css'
  20. Vue.use(VueQuillEditor)
  21. // markdown插件
  22. import mavonEditor from 'mavon-editor'
  23. import 'mavon-editor/dist/css/index.css'
  24. Vue.use(mavonEditor)
  25. import '@/permission'
  26. import { store } from '@/store/index'
  27. Vue.config.productionTip = false
  28. // 路由守卫
  29. import Bus from '@/utils/bus.js'
  30. Vue.use(Bus)
  31. new Vue({
  32. render: h => h(App),
  33. router,
  34. store
  35. }).$mount('#app')