23 lines
593 B
JavaScript
23 lines
593 B
JavaScript
import Vue from "vue";
|
|
import App from "./App.vue";
|
|
import "./registerServiceWorker";
|
|
import router from "./router";
|
|
import store from "./store";
|
|
Vue.config.productionTip = false;
|
|
import ElementUI from "element-ui";
|
|
import "element-ui/lib/theme-chalk/index.css";
|
|
import moment from 'moment'; //引入
|
|
Vue.prototype.$moment = moment ; //挂载到原型
|
|
// 全局引入Echarts;
|
|
import * as echarts from "echarts";
|
|
import "echarts-gl";
|
|
// 然后挂载在vue原型上;
|
|
Vue.prototype.$echarts = echarts;
|
|
|
|
Vue.use(ElementUI);
|
|
new Vue({
|
|
router,
|
|
store,
|
|
render: (h) => h(App),
|
|
}).$mount("#app");
|