diff --git a/pages/memorial/memorialHall.vue b/pages/memorial/memorialHall.vue index baeb1c6..1257977 100644 --- a/pages/memorial/memorialHall.vue +++ b/pages/memorial/memorialHall.vue @@ -105,6 +105,7 @@ v-if="selectedUnitId" :showDetailLink="false" :unit-id="selectedUnitId" + ref="statusBar" @view-details="handleViewDetails" /> @@ -448,7 +449,14 @@ export default { title: "供奉成功!", icon: "success", }); + // 供奉成功后刷新状态栏数据 + if (this.$refs.statusBar && typeof this.$refs.statusBar.loadUnitData === 'function') { + this.$refs.statusBar.loadUnitData(this.selectedUnitId); + } } + this.selectedUnitId += 1; + this.selectedUnitId -= 1; + // 关闭弹窗 this.closeOfferingModal();