From 05bd05268924c03bd93d991ecfbc5f581ab18750 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 9 Mar 2022 09:18:21 +0800 Subject: [PATCH] BUG 28138 --- src/mods/AppVillageInfo/AppVillageInfo.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } })