src/pages/heatCamera/index/main.ts
@@ -1,10 +1,20 @@ import Vue from 'vue'; import App from './App.vue'; import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; import "@/assets/css/element-variables.scss"; import App from './App.vue'; import moment from "moment"; Vue.prototype.$moment = moment; Vue.use(ElementUI) Vue.filter('moment', function (value, formatString) { formatString = formatString || 'YYYY-MM-DD HH:mm:ss'; return moment(value).format(formatString); }); new Vue({ el: '#app', render: h => h(App)