From 5d804f3f5bd78e6e803716d74984571d621dc7eb Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期三, 12 十一月 2025 14:52:49 +0800
Subject: [PATCH] 送检时间为空也不自动保存

---
 components/machine.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/components/machine.vue b/components/machine.vue
index 636d121..b8e1cd2 100644
--- a/components/machine.vue
+++ b/components/machine.vue
@@ -260,12 +260,15 @@
         mounted() {
             // 椤甸潰鍔犺浇鏃讹紝鍚姩瀹氭椂鍣紝姣忛殧30绉掕嚜鍔ㄤ繚瀛�
             this.autoSaveTimer = setInterval(() => {
-                // 鍒ゆ柇褰撳墠宸ュ崟鏄惁涓哄紑宸ョ姸鎬侊紝鑻ユ槸鍒欎笉瑙﹀彂淇濆瓨
+                // 1. 宸ュ崟涓哄紑宸ョ姸鎬佷笉鑷姩淇濆瓨
                 if (this.statusForm && this.statusForm.status === '寮�宸�') {
-                    // 宸插紑宸ヤ笉鑷姩淇濆瓨
                     return;
                 }
-                this.save(); // 鍙湁闈炲紑宸ョ姸鎬佹墠鑷姩淇濆瓨
+                // 2. 閫佹鏃堕棿涓虹┖涔熶笉鑷姩淇濆瓨
+                if (!this.maShoutTime) {
+                    return;
+                }
+                this.save(); // 婊¤冻鏉′欢鎵嶈嚜鍔ㄤ繚瀛�
             }, 1 * 30 * 1000); // 30绉�
         },
 		beforeDestroy() {

--
Gitblit v1.9.3