zhangwei
2024-09-03 376ac09a54e8c95190d06bf39f295c890829c103
src/common/utils/util.js
@@ -144,9 +144,9 @@
      const hours = date.getHours().toString().padStart(2, '0');
      const minutes = date.getMinutes().toString().padStart(2, '0');
      if (type) {
         return `${year}/${month}/${day} ${hours}:${minutes}`;
         return `${year}-${month}-${day} ${hours}:${minutes}`;
      }
      return `${year}/${month}/${day}`;
      return `${year}-${month}-${day}`;
   },
   /**
    * 倒计时
@@ -767,7 +767,9 @@
         }, reject)
         // #endif
      })
   },
   roundToTwo(num){
      return Math.round((num + Number.EPSILON) * 100) / 100;
   }
}