main.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // 兼容 IE
  2. // https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md#babelpolyfill
  3. //import 'core-js/stable'
  4. //import 'regenerator-runtime/runtime'
  5. require("@/assets/css/index.scss")
  6. import Vue from 'vue'
  7. import App from './App.vue'
  8. import Vant from 'vant';
  9. import 'vant/lib/index.css';
  10. import router from './router'
  11. import store from './store'
  12. // 引入样式
  13. import "vue-easytable/libs/theme-default/index.css";
  14. // 引入组件库
  15. import VueEasytable from "vue-easytable";
  16. import dayjs from "dayjs";
  17. import {imgUrl} from "@/utils";
  18. // 设置 js中可以访问 $cdn
  19. import config, { $cdn } from '@/config'
  20. import EmptyBox from '@/components/EmptyBox'
  21. Vue.prototype.$cdn = $cdn
  22. Vue.prototype.dayjs = dayjs
  23. Vue.prototype.imgUrl = imgUrl;
  24. // 移动端适配
  25. import 'amfe-flexible'
  26. // filters
  27. import './filters'
  28. Vue.config.productionTip = false
  29. import VCalendar from 'v-calendar';
  30. import globals from "@/utils/global.js"//全局混入
  31. import '@vant/touch-emulator'
  32. import './components/index.js'
  33. Vue.use(Vant);
  34. Vue.use(VueEasytable);
  35. Vue.use(globals);
  36. Vue.use(VCalendar,{
  37. componentPrefix: 'vc', // Use <vc-calendar /> instead of <v-calendar />
  38. });
  39. new Vue({
  40. el: '#app',
  41. router,
  42. store,
  43. render: h => h(App)
  44. })