1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- import Vue from 'vue'
- import router from './router'
- import store from './store'
- import App from './App.vue'
- Vue.config.productionTip = false
- import {query} from "./utils/query.js"
- 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()
- // })
- // 注册首屏加载
- /* import { IndexLoading } from 'meri-design'
- const indexLoading = IndexLoading();
- // 注册关闭方法,需要手动关闭
- Vue.prototype.$removeIndexLoading = () => {
- IndexLoading.remove(indexLoading)
- }
- document.addEventListener('readystatechange',()=>{
- if (document.readyState === 'complete') {
- IndexLoading.remove(indexLoading)
- }
- }) */
- new Vue({
- router,
- store,
- render: (h) => h(App),
- }).$mount('#app')
|