|
@@ -524,7 +524,7 @@ export default {
|
|
|
} else if (fieldList[i].type == "file") {
|
|
|
let _text = ``;
|
|
|
// this.fieldList[i].value.forEach(async f => {
|
|
|
- for (let j = 0; j < this.fieldList[i].value.length; j++) {
|
|
|
+ for (let j = 0; j < fieldList[i].value.length; j++) {
|
|
|
let f = fieldList[i].value[j];
|
|
|
if (/\.(jpeg|jpg|gif|png|svg|bmp|webp)$/i.test(f.url)) {
|
|
|
// const img = await this.convertImageUrlToBase64(f.url);
|
|
@@ -533,6 +533,7 @@ export default {
|
|
|
let _setWidth = 100;
|
|
|
let _setHeight = (_imageWidthAndHeight.height / _imageWidthAndHeight.width) * _setWidth; // 根据比例计算高度
|
|
|
_text += `<img src="${f.url}" width="${_setWidth}" height="${_setHeight}" style="object-fit:contain"/><br/>`;
|
|
|
+ console.log(_text)
|
|
|
} else {
|
|
|
_text += `<a href="${f.url}" target="_blank">${f.name}</a><br/>`;
|
|
|
}
|