import Vue from 'vue'
|
import App from './App'
|
import { router } from './router'
|
import Antd from "ant-design-vue/es";
|
import "ant-design-vue/dist/antd.css";
|
|
import ElementUI from 'element-ui';
|
import 'element-ui/lib/theme-chalk/index.css';
|
Vue.use(ElementUI);
|
|
// import BaiduMap from '@/components/vue-bai-map/components'
|
// Vue.use( BaiduMap, { ak : 'tuVbv4tLIzoX7IWdeKeTwojDqPILFoe5'} )
|
// import BaiduMap from 'vue-baidu-map'
|
// Vue.use( BaiduMap, { ak : 'tuVbv4tLIzoX7IWdeKeTwojDqPILFoe5'} )
|
|
import { getStore, setStore, removeStore } from "./libs/store"
|
import store from './store'
|
Vue.use(Antd);
|
|
|
// 将自动注册所有组件为全局组件
|
import dataV from '@jiaminghi/data-view'
|
|
Vue.use(dataV)
|
|
import './utils/flexible'
|
import gsap from 'gsap'
|
Vue.prototype.gsap = gsap
|
|
Vue.prototype.getStore = getStore;
|
Vue.prototype.setStore = setStore;
|
Vue.prototype.removeStore = removeStore;
|
|
import './libs/dialogDrag'
|
|
import moment from 'moment'
|
Vue.prototype.moment = moment
|
|
import animated from 'animate.css'
|
Vue.use(animated)
|
|
Vue.config.productionTip = false
|
|
|
import vcolorpicker from 'vcolorpicker'
|
Vue.use(vcolorpicker)
|
|
new Vue({
|
el: '#app',
|
router,
|
store,
|
components: { App },
|
template: '<App/>',
|
document: {
|
icon: '',
|
title: '后台管理'
|
},
|
watch: {
|
$route() {
|
document.title = this.$route.meta.title || '出错了'
|
}
|
}
|
})
|