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.
28 lines
713 B
28 lines
713 B
// The Vue build version to load with the `import` command
|
|
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
|
import Vue from 'vue'
|
|
import App from './App'
|
|
import router from './router'
|
|
import ElementUI from 'element-ui';
|
|
import 'element-ui/lib/theme-chalk/index.css';
|
|
import moment from 'moment'
|
|
Vue.config.productionTip = false
|
|
|
|
Vue.use(ElementUI, {
|
|
size: 'small'
|
|
});
|
|
Vue.filter('formatDate',function (input,fmtstring) {//当input为时间戳,需转为Number类型
|
|
if(input){
|
|
return moment(input*1000).format('YYYY-MM-DD HH:mm:ss');
|
|
}else{
|
|
return "";
|
|
}
|
|
});
|
|
|
|
/* eslint-disable no-new */
|
|
new Vue({
|
|
el: '#app',
|
|
router,
|
|
components: { App },
|
|
template: '<App/>'
|
|
})
|
|
|