123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import Vue from 'vue'
- import router from './router'
- import store from './store'
- import App from './App.vue'
- Vue.config.productionTip = false
- import design from 'ant-design-vue'
- import 'ant-design-vue/dist/antd.css'
- Vue.use(design)
- import ElementUI from 'element-ui'
- import 'element-ui/lib/theme-chalk/index.css'
- Vue.use(ElementUI)
- import VueQuillEditor from 'vue-quill-editor'
- import 'quill/dist/quill.core.css'
- import 'quill/dist/quill.snow.css'
- import 'quill/dist/quill.bubble.css'
- Vue.use(VueQuillEditor)
- import WdEditor from '@/components/Editor'
- Vue.use(WdEditor)
- import Rotation from '@/components/Rotation'
- Vue.use(Rotation)
- import PicLarge from '@/components/PicLarge'
- Vue.use(PicLarge)
- import Legend from '@/components/Legend'
- Vue.use(Legend)
- import cookies from 'vue-cookie'
- Vue.use(cookies)
- import Pui from 'meri-design'
- import 'meri-design/dist/index.css'
- import 'leaflet/dist/leaflet.css'
- Vue.use(Pui)
-
- //////////模拟传入参数
- const username = 'lengqiang'
- /////////////////
- // 在跳入路由之前要请求获取权限信息
- // console.log(store.state.isrequestAuth)
- // router.beforeEach(async (to, from, next) => {
- // if (!store.state.isrequestAuth) {
- // await store.dispatch('getUserInfo', username)
- // await store.dispatch('getFloors')
- // }
- // next()
- // })
- new Vue({
- router,
- store,
- render: (h) => h(App),
- }).$mount('#app')
|