供奉后供奉列表自动刷新

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
v-if="selectedUnitId"
ref="statusBar"
:showDetailLink="false"
:unit-id="selectedUnitId"
ref="statusBar"
@view-details="handleViewDetails"
/>
<view class="placeholder"></view>
@ -450,12 +450,17 @@ export default {
icon: "success",
});
//
if (this.$refs.statusBar && typeof this.$refs.statusBar.loadUnitData === 'function') {
this.$refs.statusBar.loadUnitData(this.selectedUnitId);
if (
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();