main.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import Vue from 'vue'
  2. import router from './router'
  3. import store from './store'
  4. import App from './App.vue'
  5. Vue.config.productionTip = false
  6. import design from 'ant-design-vue'
  7. import 'ant-design-vue/dist/antd.css'
  8. Vue.use(design)
  9. import ElementUI from 'element-ui'
  10. import 'element-ui/lib/theme-chalk/index.css'
  11. Vue.use(ElementUI)
  12. import VueQuillEditor from 'vue-quill-editor'
  13. import 'quill/dist/quill.core.css'
  14. import 'quill/dist/quill.snow.css'
  15. import 'quill/dist/quill.bubble.css'
  16. Vue.use(VueQuillEditor)
  17. import WdEditor from '@/components/Editor'
  18. Vue.use(WdEditor)
  19. import Rotation from '@/components/Rotation'
  20. Vue.use(Rotation)
  21. import PicLarge from '@/components/PicLarge'
  22. Vue.use(PicLarge)
  23. import Legend from '@/components/Legend'
  24. Vue.use(Legend)
  25. import cookies from 'vue-cookie'
  26. Vue.use(cookies)
  27. import Pui from 'meri-design'
  28. import 'meri-design/dist/index.css'
  29. import 'leaflet/dist/leaflet.css'
  30. Vue.use(Pui)
  31. //////////模拟传入参数
  32. const username = 'lengqiang'
  33. /////////////////
  34. // 在跳入路由之前要请求获取权限信息
  35. // console.log(store.state.isrequestAuth)
  36. // router.beforeEach(async (to, from, next) => {
  37. // if (!store.state.isrequestAuth) {
  38. // await store.dispatch('getUserInfo', username)
  39. // await store.dispatch('getFloors')
  40. // }
  41. // next()
  42. // })
  43. new Vue({
  44. router,
  45. store,
  46. render: (h) => h(App),
  47. }).$mount('#app')