From 4877e08598e8c860d65e49c7e0cf9e59c29abc4d Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期日, 31 八月 2025 14:36:58 +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