From 456d6ed3fb5412575cb7541d3a0a601466d97038 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期一, 13 十一月 2023 16:56:11 +0800
Subject: [PATCH] feat: step组件适配工序过多情况;修复任务少于3条时展示收起按钮的问题
---
src/stores/tasks.ts | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/stores/tasks.ts b/src/stores/tasks.ts
index 032e7b8..971a627 100644
--- a/src/stores/tasks.ts
+++ b/src/stores/tasks.ts
@@ -28,13 +28,15 @@
return getTaskList(params)
.then((res) => {
channels.value = res.data
- // 棣栨鑾峰彇閫氶亾鏁版嵁鏃惰嚜鍔ㄩ�変腑绗竴涓换鍔�
- selectFirstTask(channels.value)
})
.catch((err) => {
console.error(err)
channels.value = []
})
+ .finally(() => {
+ // 棣栨鑾峰彇閫氶亾鏁版嵁鏃惰嚜鍔ㄩ�変腑绗竴涓换鍔�
+ selectFirstTask(channels.value)
+ })
}
function selectFirstTask(channels: TasksGroupByChannel) {
--
Gitblit v1.8.0