From 2cdfa358ebe170e46904bf5bd6f11a3ba10c5cad Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Wed, 12 Apr 2023 09:55:09 +0800 Subject: [PATCH] bug --- .../fengdu/app/AppDynamic/components/Detail.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/project/fengdu/app/AppDynamic/components/Detail.vue b/project/fengdu/app/AppDynamic/components/Detail.vue index 5bd724ba..e134222b 100644 --- a/project/fengdu/app/AppDynamic/components/Detail.vue +++ b/project/fengdu/app/AppDynamic/components/Detail.vue @@ -61,9 +61,19 @@ this.instance.post(`/app/appcontentinfo/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { this.info = res.data - this.info.pictureUrl = res.data.pictureUrl ? [{ - url: res.data.pictureUrl - }] : [] + this + this.info = { + ...res.data, + pictureUrl: res.data.pictureUrl ? [{ + url: res.data.pictureUrl + }] : [], + files: res.data.files.map(v => { + return { + ...v, + postfix: v.postfix.toLowerCase() + } + }) + } } }) },