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