供奉后供奉列表自动刷新

This commit is contained in:
WindowBird 2025-10-14 14:58:36 +08:00
parent 82a2b2e634
commit d75e0214a6

View File

@ -103,9 +103,9 @@
<!-- 状态栏 --> <!-- 状态栏 -->
<StatusBar <StatusBar
v-if="selectedUnitId" v-if="selectedUnitId"
ref="statusBar"
: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>
@ -450,11 +450,16 @@ export default {
icon: "success", icon: "success",
}); });
// //
if (this.$refs.statusBar && typeof this.$refs.statusBar.loadUnitData === 'function') { if (
this.$refs.statusBar.loadUnitData(this.selectedUnitId); this.$refs.statusBar &&
typeof this.$refs.statusBar.loadUnitData === "function"
) {
await this.$refs.statusBar.loadUnitData(this.selectedUnitId);
}
if (this.$refs.enshrinedList && typeof this.$refs.enshrinedList.refresh === "function") {
await this.$refs.enshrinedList.refresh();
} }
} }
// //
this.closeOfferingModal(); this.closeOfferingModal();