import Vue from 'vue'
|
import ElementUI from 'element-ui';
|
import 'element-ui/lib/theme-chalk/index.css';
|
import App from './App'
|
import { router } from './router'
|
import { getStore, setStore, removeStore } from "./libs/store"
|
import store from './store'
|
import 'lib-flexible/flexible.js'
|
import echarts from 'echarts'
|
Vue.prototype.$echarts = echarts
|
|
import Plugin from 'v-fit-columns';
|
|
Vue.use(ElementUI);
|
Vue.use(Plugin);
|
|
Vue.prototype.getStore = getStore;
|
Vue.prototype.setStore = setStore;
|
Vue.prototype.removeStore = removeStore;
|
|
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 || '出错了'
|
}
|
}
|
})
|