From 75c41cc8a2f25cff74e976cdc7851cbaddd97b3f Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 06 十一月 2023 17:58:39 +0800
Subject: [PATCH] 和代码

---
 src/views/dashboard/components/TaskControlModal.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/dashboard/components/TaskControlModal.vue b/src/views/dashboard/components/TaskControlModal.vue
index e5980ab..c51b154 100644
--- a/src/views/dashboard/components/TaskControlModal.vue
+++ b/src/views/dashboard/components/TaskControlModal.vue
@@ -238,7 +238,7 @@
 const safeProduce = ref('')
 watch(modelData, () => {
   if (modelData.value) {
-    safeProduce.value = channels?.value?.[task.value.Channel]?.Prompt?.safeProduce ?? ''
+    safeProduce.value = channels?.value?.[task?.value?.Channel ?? 0]?.Prompt?.safeProduce ?? ''
   }
 })
 
@@ -335,7 +335,7 @@
   send('寮�濮嬬敓浜�')
 
   sendProcessParams({
-    procedureId: task.value.Procedure.ID
+    procedureId: task!.value!.Procedure.ID
   })
     .then(
       (res) => {

--
Gitblit v1.8.0