qingyiay
2023-10-10 d393b6dd9964bd22d4ab91c37a3bfb6116fd9fca
utils/util.js
@@ -1,4 +1,4 @@
export function todayDate(arg){
export function todayDate(arg) {
   let date = new Date()
   let year = date.getFullYear()
   let month = date.getMonth() + 1;
@@ -6,11 +6,10 @@
   let hour = date.getHours()
   let minutes = date.getMinutes()
   let seconds = date.getSeconds()
   console.log(arg,'时间');
   if(arg == 'hms'){
   if (arg == 'hms') {
      hour = hour < 10 ? '0' + hour : hour
      minutes = minutes < 10 ? '0' + minutes : minutes
      seconds = seconds < 10 ? '0' + seconds : seconds
      return hour+':'+minutes+':' + seconds
      return hour + ':' + minutes + ':' + seconds
   }
}
}