main.js 700 B

123456789101112131415161718192021222324252627282930313233
  1. // The Vue build version to load with the `import` command
  2. // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
  3. import Vue from 'vue'
  4. import App from './App'
  5. import router from './router'
  6. import store from './store'
  7. import 'lib-flexible'
  8. Vue.config.productionTip = false
  9. import preview from 'vue-photo-preview'
  10. import 'vue-photo-preview/dist/skin.css'
  11. Vue.use(preview)
  12. import AmapVue from '@amap/amap-vue'
  13. AmapVue.config.key = '3d9ce5fb1194cb4de7d48260eecefd00'
  14. Vue.use(AmapVue)
  15. let options = {
  16. fullscreenEl: false,
  17. }
  18. Vue.use(preview, options)
  19. /* eslint-disable no-new */
  20. new Vue({
  21. el: '#app',
  22. router,
  23. store,
  24. components: { App },
  25. template: '<App/>'
  26. })