main.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. Vue.prototype.$cdn = $cdn
  21. Vue.prototype.dayjs = dayjs
  22. Vue.prototype.imgUrl = imgUrl;
  23. // 移动端适配
  24. import 'amfe-flexible'
  25. // filters
  26. import './filters'
  27. Vue.config.productionTip = false
  28. import VCalendar from 'v-calendar';
  29. import globals from "@/utils/global.js"//全局混入
  30. Vue.use(Vant);
  31. Vue.use(VueEasytable);
  32. Vue.use(globals);
  33. Vue.use(VCalendar,{
  34. componentPrefix: 'vc', // Use <vc-calendar /> instead of <v-calendar />
  35. });
  36. new Vue({
  37. el: '#app',
  38. router,
  39. store,
  40. render: h => h(App)
  41. })