|
@@ -104,8 +104,11 @@ export default {
|
|
const info = reactive({})
|
|
const info = reactive({})
|
|
api.getTreasureDetail(route.query.id).then((res) => {
|
|
api.getTreasureDetail(route.query.id).then((res) => {
|
|
console.log(res)
|
|
console.log(res)
|
|
|
|
+ const firstImgFile = res.file.find((item) => {
|
|
|
|
+ return item.type === 'img'
|
|
|
|
+ })
|
|
info.name = res.entity.name
|
|
info.name = res.entity.name
|
|
- info.thumb = res.entity.thumb
|
|
|
|
|
|
+ info.thumb = firstImgFile ? firstImgFile.filePath : res.entity.thumb
|
|
info.description = res.entity.description
|
|
info.description = res.entity.description
|
|
})
|
|
})
|
|
|
|
|