From e6b7921fc2e2b95e4c2b666b372ad611c08e9d62 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期一, 13 十一月 2023 10:25:03 +0800
Subject: [PATCH] feat: 调整按钮样式; 切换设备后自动选中第一条任务并展示详情

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

diff --git a/src/views/dashboard/components/ProcessInfo.vue b/src/views/dashboard/components/ProcessInfo.vue
index 9c74f97..b107f93 100644
--- a/src/views/dashboard/components/ProcessInfo.vue
+++ b/src/views/dashboard/components/ProcessInfo.vue
@@ -49,9 +49,10 @@
   for (let i in activeArr.value) {
     if (activeArr.value[i] == craftModel.value.number) {
       loading.value = true
-      break
+      return true
     }
   }
+  loading.value = false
 }
 function onDetailClick() {
   emit('detail', craftModel.value)

--
Gitblit v1.8.0