Browse Source

fix: 修复babal转换问题

zhangyuhan 3 years ago
parent
commit
d87c90c79b
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/web/staticres/js/dateFunc.js

+ 1 - 3
src/web/staticres/js/dateFunc.js

@@ -1,5 +1,3 @@
-"use strict";
-
 function dateTime(date, fmt) {
   if (fmt === void 0) {
     fmt = 'yyyy年MM月dd日 hh:mm';
@@ -7,7 +5,7 @@ function dateTime(date, fmt) {
 
   // 时间戳转换
   if (!date) return '';
-  d = new Date(date);
+  var d = new Date(date);
   var o = {
     "M+": d.getMonth() + 1,
     //月份