From ccee429d379e0108b7445f72ade8d97c110a6fb3 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期二, 09 十一月 2021 18:01:59 +0800 Subject: [PATCH] 问题修复 --- src/pages/heatCamera/index/main.ts | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/pages/heatCamera/index/main.ts b/src/pages/heatCamera/index/main.ts index 93bc0d1..a749e8f 100644 --- a/src/pages/heatCamera/index/main.ts +++ b/src/pages/heatCamera/index/main.ts @@ -1,11 +1,20 @@ import Vue from 'vue'; +import App from './App.vue'; + import ElementUI from 'element-ui'; -//import HeatMap from 'heatmap.js-fixed'; 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) -- Gitblit v1.8.0