You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
806 B

5 years ago
import './plugins/axios';
import './registerServiceWorker';
import './plugins/ant-design-vue.js';
import 'common/portrait.styl';
import './assets/icon/iconfont.css';
import 'moment/locale/zh-cn';
import * as echarts from 'echarts';
import App from './App.vue';
// @ts-ignore
import Vue from 'vue';
import moment from 'moment'; //导入文件
import router from './router';
import store from './store';
moment.locale('zh-cn');
5 years ago
Vue.prototype.$echarts = echarts;
5 years ago
Vue.prototype.$moment = moment; //赋值使用
5 years ago
Vue.config.productionTip = false;
router.beforeEach((to, from, next) => {
//to and from are Route Object,next() must be called to resolve the hook}
document.title = to.matched[0].meta.title;
next();
});
5 years ago
window.vm = new Vue({
router,
store,
5 years ago
render: h => h(App),
4 years ago
}).$mount('#app');