diff --git a/src/apps/AppResidentActivitie/Add.vue b/src/apps/AppResidentActivitie/Add.vue index de058458..2233fbf3 100644 --- a/src/apps/AppResidentActivitie/Add.vue +++ b/src/apps/AppResidentActivitie/Add.vue @@ -97,7 +97,7 @@ export default { }, computed: { ...mapState(['user']) }, onLoad(o) { - document.title = '发布活动' + document.title = '发布活动' this.id = o.id ? o.id : '' this.$dict.load('realityStatus').then(() => { this.areaId = this.user.areaId @@ -105,6 +105,7 @@ export default { this.user.phone = this.forms.contactPhone this.user.name = this.forms.contactPerson + this.getDetail() }) }, @@ -113,12 +114,12 @@ export default { getDetail() { this.$http.post(`/app/appvillageactivityinfo/queryDetailById?id=${this.id}`).then((res) => { if (res?.data) { - // this.detail = res.data - // if (this.detail) { - // if (this.detail.url) { - // this.detail.url = JSON.parse(res.data.url || '[]') - // } - // } + this.forms = res.data + if (res.data) { + if (res.data.url) { + this.forms.url = JSON.parse(res.data.url || '[]') + } + } } }) },