供奉后供奉列表自动刷新
This commit is contained in:
parent
82a2b2e634
commit
d75e0214a6
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user