xiatian 4 năm trước cách đây
mục cha
commit
b4397c8931
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();