diff --git a/src/mods/AppVillageInfo/AppVillageInfo.vue b/src/mods/AppVillageInfo/AppVillageInfo.vue index a65d1aa..8a46e7a 100644 --- a/src/mods/AppVillageInfo/AppVillageInfo.vue +++ b/src/mods/AppVillageInfo/AppVillageInfo.vue @@ -48,7 +48,7 @@ export default { info: {} } }, - onLoad() { + onShow() { this.getArea().then(areaId => this.getDetail(areaId)) }, methods: { @@ -65,7 +65,7 @@ export default { areaId && this.$instance.post(`/app/appeveryvillagecode/queryDetailByAreaId`, null, { params: {areaId} }).then(res => { - if (res?.code === 0) { + if (res?.data) { this.info = res.data } })