From 4e60ba038a1fbd0808a4cadd83e04606e6865bd4 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 14 十一月 2023 10:14:47 +0800 Subject: [PATCH] 工艺信息的更新按钮加载更换方式 --- 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