供奉成功后及时刷新牌位状态-返回往生殿也同步重新请求牌位状态
This commit is contained in:
parent
afd894d7a4
commit
b43cdc6ccb
|
|
@ -27,6 +27,7 @@
|
||||||
<!-- 状态栏 -->
|
<!-- 状态栏 -->
|
||||||
<StatusBar
|
<StatusBar
|
||||||
v-if="selectedUnitId"
|
v-if="selectedUnitId"
|
||||||
|
ref="statusBar"
|
||||||
:unit-id="selectedUnitId"
|
:unit-id="selectedUnitId"
|
||||||
@view-details="handleViewDetails"
|
@view-details="handleViewDetails"
|
||||||
/>
|
/>
|
||||||
|
|
@ -93,6 +94,12 @@ export default {
|
||||||
}
|
}
|
||||||
this.initPage();
|
this.initPage();
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
// 返回该页面时,刷新状态栏数据,避免与供奉页操作不一致
|
||||||
|
if (this.selectedUnitId && this.$refs.statusBar && typeof this.$refs.statusBar.loadUnitData === 'function') {
|
||||||
|
this.$refs.statusBar.loadUnitData(this.selectedUnitId);
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 初始化页面
|
// 初始化页面
|
||||||
async initPage() {
|
async initPage() {
|
||||||
|
|
|
||||||
|
|
@ -454,8 +454,7 @@ export default {
|
||||||
this.$refs.statusBar.loadUnitData(this.selectedUnitId);
|
this.$refs.statusBar.loadUnitData(this.selectedUnitId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.selectedUnitId += 1;
|
|
||||||
this.selectedUnitId -= 1;
|
|
||||||
|
|
||||||
// 关闭弹窗
|
// 关闭弹窗
|
||||||
this.closeOfferingModal();
|
this.closeOfferingModal();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user