// 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' require ('./assets/style/reset.css') Vue.filter('dataFilter',function () { let date = new Date() let str = '' let year = date.getFullYear() let month = date.getMonth()+1<10? "0"+ (date.getMonth()+1) : date.getMonth()+1 let day = date.getDate()<10 ? "0"+date.getDate() : date.getDate() let hours = date.getHours()<10? "0"+date.getHours() : date.getHours() let minutes=date.getMinutes()<10 ? "0"+date.getMinutes() : date.getMinutes(); let seconds=date.getSeconds()<10 ? "0"+date.getSeconds() : date.getSeconds(); str = year+'-'+month+'-'+day+' '+hours+":"+minutes+":"+seconds return str }) Vue.config.productionTip = false /* eslint-disable no-new */ new Vue({ el: '#app', components: { App }, template: '' })