Browse Source

[edit][时间倒计时]

zhangwei 2 năm trước cách đây
mục cha
commit
64ab9468b1
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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`