|
@@ -323,6 +323,8 @@ export default {
|
|
|
async showImage(item) {
|
|
|
console.log('显示原理图')
|
|
|
console.log(item)
|
|
|
+ this.imgList = []
|
|
|
+ this.imgKey = 'img_' + new Date().getTime()
|
|
|
if (Array.isArray(item.typecode)) {
|
|
|
return this.getTuJianImage(item)
|
|
|
}
|
|
@@ -344,6 +346,7 @@ export default {
|
|
|
imgList.push(item.url)
|
|
|
})
|
|
|
this.imgList = imgList
|
|
|
+
|
|
|
imgList.length && (this.showImgPreview = true)
|
|
|
},
|
|
|
/**
|
|
@@ -367,7 +370,7 @@ export default {
|
|
|
}
|
|
|
let resData = res.data
|
|
|
let imgList = []
|
|
|
- resData.map((item) => {
|
|
|
+ resData?.data.map((item) => {
|
|
|
imgList.push(item.url)
|
|
|
})
|
|
|
this.imgList = imgList
|