2020-02-16 10:41:17 +00:00
|
|
|
import Vue from 'vue'
|
2020-02-20 04:09:36 +00:00
|
|
|
import Vuex from 'vuex'
|
2020-02-18 11:43:23 +00:00
|
|
|
import App from './App.vue'
|
2020-02-16 10:41:17 +00:00
|
|
|
import router from './router'
|
|
|
|
import store from './store'
|
2020-02-16 13:14:56 +00:00
|
|
|
import axios from 'axios'
|
|
|
|
import ElementUI from 'element-ui'
|
|
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
2020-03-31 02:49:37 +00:00
|
|
|
import echarts from 'echarts'
|
2020-04-14 00:47:14 +00:00
|
|
|
import IPconfig from '../IPconfig.js'
|
|
|
|
Vue.prototype.GLOBAL = IPconfig
|
2020-02-16 10:41:17 +00:00
|
|
|
Vue.config.productionTip = false
|
2020-02-16 13:14:56 +00:00
|
|
|
Vue.prototype.axios = axios
|
|
|
|
Vue.use(ElementUI)
|
2020-02-20 04:09:36 +00:00
|
|
|
Vue.use(Vuex)
|
2020-03-31 02:49:37 +00:00
|
|
|
Vue.use(echarts)
|
2020-02-16 10:41:17 +00:00
|
|
|
new Vue({
|
2020-02-20 04:09:36 +00:00
|
|
|
store,
|
2020-02-16 10:41:17 +00:00
|
|
|
router,
|
2020-02-20 04:09:36 +00:00
|
|
|
render: h => h(App),
|
|
|
|
create () {
|
|
|
|
if (localStorage.getItem('isLogin') === null) {
|
|
|
|
localStorage.setItem('isLogin', '')
|
|
|
|
}
|
|
|
|
this.$store.state.isLogin = localStorage.getItem('isLogin')
|
|
|
|
}
|
2020-02-16 10:41:17 +00:00
|
|
|
}).$mount('#app')
|