xiatian hace 4 años
padre
commit
b4397c8931
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/modules/examwork/view/onlineExam.vue

+ 1 - 1
src/modules/examwork/view/onlineExam.vue

@@ -1490,7 +1490,7 @@ export default {
     getNowTimeStr() {
       let now = new Date();
       let hour = now.getHours();
-      if (hour.length < 10) {
+      if (hour < 10) {
         hour = "0" + hour;
       }
       let minute = now.getMinutes();