From b68e0f2a6e431b6547169beaa7ca12d77fae15ce Mon Sep 17 00:00:00 2001 From: huxuejian Date: Wed, 21 Oct 2026 17:47:33 +0800 Subject: [PATCH] Update followup-detail.vue --- pages/case/followup-detail.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/case/followup-detail.vue b/pages/case/followup-detail.vue index 9d4f781..4d32182 100644 --- a/pages/case/followup-detail.vue +++ b/pages/case/followup-detail.vue @@ -315,8 +315,8 @@ async function getTodo() { return; } todo.value = res.data && typeof res.data === 'object' ? res.data : null; - if (todo.value.customerId && !customer.value) { - getCustomer(todo.value.customerId) + if (todo.value.customerId) { + await getCustomer(todo.value.customerId) } await loadUserNameMap(String(todo.value?.executeTeamId || '')); if (todo.value && todo.value.creatorUserId && !userNameMap.value[todo.value.creatorUserId]) { @@ -342,6 +342,9 @@ async function getCustomer(_id) { const [data] = res && Array.isArray(res.data) ? res.data : []; if (data) { customer.value = data + } else { + toast('获取客户信息失败') + uni.navigateBack() } }