2020-10-10 17:33:29 +08:00
|
|
|
import Vue from 'vue';
|
|
|
|
import App from './App.vue';
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
import ElementUI from 'element-ui';
|
|
|
|
import 'element-ui/lib/theme-chalk/index.css';
|
|
|
|
import router from './router/index.js';
|
|
|
|
import axios from 'axios';
|
|
|
|
import VueCookies from 'vue-cookies';
|
|
|
|
import echarts from 'echarts';
|
2020-10-26 11:40:46 +08:00
|
|
|
|
2020-10-10 17:33:29 +08:00
|
|
|
import VueClipboard from 'vue-clipboard2'
|
2021-01-20 23:31:00 +08:00
|
|
|
import { Notification } from 'element-ui';
|
|
|
|
|
2020-10-10 17:33:29 +08:00
|
|
|
Vue.use(VueClipboard)
|
|
|
|
Vue.use(ElementUI);
|
|
|
|
Vue.use(VueCookies);
|
|
|
|
Vue.prototype.$axios = axios;
|
2021-01-20 23:31:00 +08:00
|
|
|
Vue.prototype.$notify = Notification;
|
2020-10-10 17:33:29 +08:00
|
|
|
|
|
|
|
axios.defaults.baseURL = (process.env.NODE_ENV === 'development') ? process.env.BASE_API : "";
|
|
|
|
|
|
|
|
Vue.prototype.$cookies.config(60*30);
|
|
|
|
|
|
|
|
|
|
|
|
new Vue({
|
|
|
|
router: router,
|
|
|
|
render: h => h(App),
|
|
|
|
}).$mount('#app')
|