Browse Source

fix: 修复显示巡检时间问题

拎壶冲 5 tháng trước cách đây
mục cha
commit
fdd33fc29f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/views/hl/check/index.vue

+ 2 - 2
src/views/hl/check/index.vue

@@ -41,7 +41,7 @@
               </el-button>
             </span>
             <span class="t-span">巡检时间:</span>
-            <span class="check-time">{{ parseTime(checkTime, '{y}-{m}-{d} {h}:{mi}:{s}') }}</span>
+            <span class="check-time">{{ checkTime }}</span>
           </span>
         </span>
       </div>
@@ -191,6 +191,7 @@ const getRandomInt = (min, max) => {
 const onNowCheck = async () => {
   const {data} = await chkcCheck()
   nowCheck.value = data
+  checkTime.value = data.checkTime;
   handleCheck(0)
 }
 
@@ -200,7 +201,6 @@ const handleCheck = (i) => {
     cLoading.value = true;
     cIndex.value = null;
     currentProgress.value = 0;
-    checkTime.value = new Date();
     checkFlag.value = false;
     if (localStorage.getItem("listData")) {
       localStorage.removeItem("listData")