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() } }