From e7696559f8c6435708e3e38262bc3108c273ac23 Mon Sep 17 00:00:00 2001 From: yanzai Date: Wed, 22 Jan 2025 13:44:34 +0800 Subject: [PATCH] bug --- h5/pages/main/tj/tjxq.vue | 3 ++- h5/pages/main/tj/tjxq_new.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/h5/pages/main/tj/tjxq.vue b/h5/pages/main/tj/tjxq.vue index 15202ab..05059ce 100644 --- a/h5/pages/main/tj/tjxq.vue +++ b/h5/pages/main/tj/tjxq.vue @@ -162,10 +162,11 @@ const getBuyInfo = async () => { // 获取购买信息 + console.log("看看有没有hospital",$store.save_info); let obj = { item_ids: selectIds.value, combo_id: comboId.value, - hospital: $store.save_info.hospital, + hospital: $store.save_info?.hospital?$store.save_info?.hospital:1, person_id: personId.value, group_id: groupId.value, duo_xuan_yi: $store.getDuoXuanYi(), diff --git a/h5/pages/main/tj/tjxq_new.vue b/h5/pages/main/tj/tjxq_new.vue index 6a75aab..98f1179 100644 --- a/h5/pages/main/tj/tjxq_new.vue +++ b/h5/pages/main/tj/tjxq_new.vue @@ -176,7 +176,7 @@ let obj = { item_ids: selectIds.value, combo_id: comboId.value, - hospital: $store.save_info.hospital, + hospital: $store.save_info?.hospital?$store.save_info?.hospital:1, person_id: personId.value, group_id: groupId.value, duo_xuan_yi: $store.getDuoXuanYi(),