zengyicheng 2 年之前
父節點
當前提交
69bdd3f2be
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/pages/learnAnalysis/components/lookModel.vue

+ 2 - 2
src/components/pages/learnAnalysis/components/lookModel.vue

@@ -427,7 +427,7 @@ export default {
           lTime %= 60;
           if (days > 0) {
             overPer.loginTime = `${days}天${hours}小时`;
-          } else if (days < 0 && hours > 0) {
+          } else if (days == 0 && hours > 0) {
             overPer.loginTime = `${hours}小时${minutes}分钟`;
           } else if (days == 0 && hours == 0 && minutes > 0) {
             overPer.loginTime = `${minutes}分钟${loginAllTime}秒`;
@@ -446,7 +446,7 @@ export default {
           sTime %= 60;
           if (days1 > 0) {
             overPer.studyTime = `${days1}天${hours1}小时`;
-          } else if (days1 < 0 && hours1 > 0) {
+          } else if (days1 == 0 && hours1 > 0) {
             overPer.studyTime = `${hours1}小时${minutes1}分钟`;
           } else if (days1 == 0 && hours1 == 0 && minutes1 > 0) {
             overPer.studyTime = `${minutes1}分钟${sTime}秒`;