From b0d0a643150edb5064e8c61d941d908bad805675 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 30 八月 2025 20:53:40 +0800
Subject: [PATCH] 重构机床回传文件;撤回后禁用撤回按钮

---
 src/views/flow/components/TodolistLeft.vue |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/views/flow/components/TodolistLeft.vue b/src/views/flow/components/TodolistLeft.vue
index 38ef9eb..a195b40 100644
--- a/src/views/flow/components/TodolistLeft.vue
+++ b/src/views/flow/components/TodolistLeft.vue
@@ -217,13 +217,15 @@
             if(!nodeId){
                 nodeId = this.row.variables.curedNodeId;
             }
-            queryLockRemark(nodeId).then(res => {
-                if (res.data.code == 200) {
-                    this.remark = res.data.data || '';
-                } else {
-                    this.remark = '';
-                }
-            })
+            if(nodeId){
+                queryLockRemark(nodeId).then(res => {
+                    if (res.data.code == 200) {
+                        this.remark = res.data.data || '';
+                    } else {
+                        this.remark = '';
+                    }
+                });
+            }
         },
         diffFile(index, row) {
             console.log(row)

--
Gitblit v1.9.3