zengyicheng 2 jaren geleden
bovenliggende
commit
69bdd3f2be
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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}秒`;