Browse Source

[edit][时间倒计时]

zhangwei 2 years ago
parent
commit
64ab9468b1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/uilts/help.js

+ 1 - 0
src/uilts/help.js

@@ -182,6 +182,7 @@ export function formatSecondsAsDaysOrTime(secs) {
     return '00:00:00'
   }
   let text = ''
+  var hr = Math.floor(secs / 3600)
   if (hr >= 24) {
     let day = parseInt(hr / 24)
     text = `${day} days left`