main.js 697 B

12345678910111213141516171819202122232425262728
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import router from './router'
  4. import store from './store'
  5. import 'lib-flexible/flexible'
  6. import './style/index.css'
  7. import axios from 'axios'
  8. import *as echarts from 'echarts'//引入echarts
  9. // 导入vant
  10. import 'vant/lib/index.css'
  11. import { Button,Calendar,Icon,Popup,Cell,CellGroup } from 'vant' // 引入Button组件
  12. Vue.use(Cell);
  13. Vue.use(CellGroup)
  14. Vue.use(Popup);
  15. Vue.use(Icon);
  16. Vue.use(Calendar);
  17. Vue.use(Button) // 全局注册
  18. Vue.prototype.$echarts = echarts//挂载到Vue实例上,方便全局使用
  19. Vue.prototype.$axios = axios
  20. Vue.config.productionTip = false
  21. new Vue({
  22. router,
  23. store,
  24. render: h => h(App)
  25. }).$mount('#app')