您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

88 行
2.0 KiB

  1. import 'babel-polyfill'
  2. import 'classlist-polyfill'
  3. import Vue from 'vue'
  4. import axios from './router/axios'
  5. import VueAxios from 'vue-axios'
  6. import App from './App'
  7. import './permission' // 权限
  8. import './error' // 日志
  9. import './cache'//页面缓冲
  10. import router from './router/router'
  11. import store from './store'
  12. import { loadStyle } from './util/util'
  13. import * as urls from '@/config/env'
  14. import { iconfontUrl, iconfontVersion } from '@/config/env'
  15. import * as filters from './filters' // 全局filter
  16. import ElementUI from 'element-ui'
  17. import 'element-ui/lib/theme-chalk/index.css'
  18. import './styles/common.scss'
  19. import AvueFormDesign from '@sscfaith/avue-form-design'
  20. import basicContainer from './components/basic-container/main'
  21. import api from './api'
  22. import AvueUeditor from 'avue-plugin-ueditor'
  23. import './util/indexedDb/index'
  24. Vue.use(AvueUeditor);
  25. import VueQuillEditor from 'vue-quill-editor' //vue-quill-editor其它文件可在应用页面直接引入
  26. Vue.use(VueQuillEditor)
  27. import 'echarts'
  28. import ECharts from 'vue-echarts'
  29. Vue.component('v-chart', ECharts)
  30. import AudioPlayer from '@liripeng/vue-audio-player'
  31. // import '@liripeng/vue-audio-player/lib/vue-audio-player.css'
  32. // 插件 json 展示
  33. Vue.use(router)
  34. Vue.use(AvueFormDesign);
  35. Vue.use(AudioPlayer)
  36. window.axios = axios
  37. Vue.use(VueAxios, axios)
  38. Vue.use(api) // 注册使用API模块
  39. Vue.use(ElementUI, {
  40. size: 'small',
  41. menuType: 'text'
  42. })
  43. Vue.use(AVUE, {
  44. size: 'small',
  45. menuType: 'text'
  46. })
  47. // 注册全局容器
  48. Vue.component('basicContainer', basicContainer)
  49. // 加载相关url地址
  50. Object.keys(urls).forEach(key => {
  51. Vue.prototype[key] = urls[key]
  52. })
  53. // 加载过滤器
  54. Object.keys(filters).forEach(key => {
  55. Vue.filter(key, filters[key])
  56. })
  57. // 动态加载阿里云字体库
  58. iconfontVersion.forEach(ele => {
  59. loadStyle(iconfontUrl.replace('$key', ele))
  60. })
  61. Vue.config.productionTip = false
  62. import APlayer from '@moefe/vue-aplayer';
  63. Vue.use(APlayer, {
  64. productionTip: true,
  65. });
  66. new Vue({
  67. router,
  68. store,
  69. render: h => h(App)
  70. }).$mount('#app')