健康同学微信公众号h5项目
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.

36 lines
887B

  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. import Vue from 'vue';
  6. import App from './App.vue';
  7. import router from './router';
  8. import store from './store/index';
  9. // 设置 js中可以访问 $cdn
  10. import { $cdn } from '@/config';
  11. Vue.prototype.$cdn = $cdn;
  12. import dayjs from 'dayjs';
  13. // 引入echarts
  14. import * as echarts from 'echarts';
  15. // 全局引入按需引入UI库 vant
  16. import '@/plugins/vant';
  17. // 引入全局样式
  18. import '@/assets/css/index.scss';
  19. // 移动端适配
  20. import 'amfe-flexible';
  21. Vue.prototype.$dayjs = dayjs;
  22. Vue.prototype.$echarts = echarts;
  23. Vue.prototype.$store = store;
  24. // filters
  25. import './filters';
  26. Vue.config.productionTip = false;
  27. new Vue({
  28. el: '#app',
  29. router,
  30. store,
  31. render: h => h(App)
  32. });