供奉成功后及时刷新牌位状态

This commit is contained in:
WindowBird 2025-10-13 17:46:08 +08:00
parent 903bbc07f4
commit afd894d7a4

View File

@ -105,6 +105,7 @@
v-if="selectedUnitId" v-if="selectedUnitId"
:showDetailLink="false" :showDetailLink="false"
:unit-id="selectedUnitId" :unit-id="selectedUnitId"
ref="statusBar"
@view-details="handleViewDetails" @view-details="handleViewDetails"
/> />
<view class="placeholder"></view> <view class="placeholder"></view>
@ -448,7 +449,14 @@ export default {
title: "供奉成功!", title: "供奉成功!",
icon: "success", 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(); this.closeOfferingModal();