供奉成功后及时刷新牌位状态-返回往生殿也同步重新请求牌位状态

This commit is contained in:
WindowBird 2025-10-13 17:50:22 +08:00
parent afd894d7a4
commit b43cdc6ccb
2 changed files with 8 additions and 2 deletions

View File

@ -27,6 +27,7 @@
<!-- 状态栏 -->
<StatusBar
v-if="selectedUnitId"
ref="statusBar"
:unit-id="selectedUnitId"
@view-details="handleViewDetails"
/>
@ -93,6 +94,12 @@ export default {
}
this.initPage();
},
onShow() {
//
if (this.selectedUnitId && this.$refs.statusBar && typeof this.$refs.statusBar.loadUnitData === 'function') {
this.$refs.statusBar.loadUnitData(this.selectedUnitId);
}
},
methods: {
//
async initPage() {

View File

@ -454,8 +454,7 @@ export default {
this.$refs.statusBar.loadUnitData(this.selectedUnitId);
}
}
this.selectedUnitId += 1;
this.selectedUnitId -= 1;
//
this.closeOfferingModal();