From 1acb2169d78d74e347bdfc2e962a88e6cb585bb7 Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期五, 30 十月 2020 14:22:34 +0800 Subject: [PATCH] 修复数据栈文件删除列表仍有遗留的bug --- src/pages/heatCamera/index/main.ts | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/pages/heatCamera/index/main.ts b/src/pages/heatCamera/index/main.ts index 6bd5dc0..a749e8f 100644 --- a/src/pages/heatCamera/index/main.ts +++ b/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) -- Gitblit v1.8.0