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.
 
 
 

58 lines
2.1 KiB

  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import { initRouter } from './router'
  4. import './theme/index.less'
  5. import Antd from 'ant-design-vue'
  6. import Viser from 'viser-vue'
  7. // import '@/mock'
  8. import store from './store'
  9. import 'animate.css/source/animate.css'
  10. import Plugins from '@/plugins'
  11. import { initI18n } from '@/utils/i18n'
  12. import bootstrap from '@/bootstrap'
  13. import Viewer from 'v-viewer'
  14. import VueClipboard from 'vue-clipboard2'
  15. import 'viewerjs/dist/viewer.css'
  16. import 'moment/locale/zh-cn'
  17. import './utils/filter'
  18. import '@/style/common.css'
  19. import * as echarts from 'echarts'
  20. Vue.prototype.$echarts = echarts
  21. import CustomDrawer from '@/components/drawer/CustomDrawer';
  22. import SvgIcon from '@/components/iconFont/SvgIcon';
  23. import OpenCloseBox from '@/components/customer/OpenCloseBox';
  24. import ButtonBox from '@/components/customer/ButtonBox';
  25. import CustomerIntroduce from '@/components/customer/CustomerIntroduce';
  26. import StringSubstr from '@/components/customer/StringSubstr';
  27. import CustomModal from '@/components/modal/CustomModal';
  28. Vue.component(CustomDrawer.name, CustomDrawer);
  29. Vue.component(SvgIcon.name, SvgIcon);
  30. Vue.component(OpenCloseBox.name, OpenCloseBox);
  31. Vue.component(ButtonBox.name, ButtonBox);
  32. Vue.component(CustomerIntroduce.name, CustomerIntroduce);
  33. Vue.component(StringSubstr.name, StringSubstr);
  34. Vue.component(CustomModal.name, CustomModal);
  35. Vue.config.devtools = true;
  36. const router = initRouter(store.state.setting.asyncRoutes)
  37. const i18n = initI18n('CN', 'US')
  38. import Bus from '@/utils/bus';
  39. import { BOM_ICON } from '@/utils/const';
  40. Vue.prototype.$bus = Bus;
  41. Vue.prototype.$bomIcon = BOM_ICON;
  42. Vue.use(Viewer)
  43. Vue.use(VueClipboard)
  44. Viewer.setDefaults({
  45. Options: { 'inline': true, 'button': true, 'navbar': true, 'title': true, 'toolbar': true, 'tooltip': true, 'movable': true, 'zoomable': true, 'rotatable': true, 'scalable': true, 'transition': true, 'fullscreen': true, 'keyboard': true, 'url': 'data-source' }
  46. })
  47. Vue.use(Antd)
  48. Vue.use(Viser)
  49. Vue.use(Plugins)
  50. bootstrap({ router, store, i18n, message: Vue.prototype.$message })
  51. new Vue({
  52. router,
  53. store,
  54. i18n,
  55. render: h => h(App),
  56. }).$mount('#app')