From 35b1ce8f65b78fcdfdd56481b29ed8d74a8a6621 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期五, 03 十一月 2023 17:57:45 +0800
Subject: [PATCH] feat: 进度条背景色,对接设备切换组件接口数据

---
 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