diff --git a/components/u-parse/components/wxParseImg.vue b/components/u-parse/components/wxParseImg.vue
index 730852f..13ba9c5 100644
--- a/components/u-parse/components/wxParseImg.vue
+++ b/components/u-parse/components/wxParseImg.vue
@@ -53,11 +53,11 @@ export default {
if ('chatimg' == this.node.attr.class)
{
- this.newStyleStr = `${styleStr}; width: 100%; padding: 0 ${+padding}px;`;
+ this.newStyleStr = `${styleStr}; max-width: 100%; padding: 0 ${+padding}px;`;
}
else
{
- this.newStyleStr = `${styleStr}; ${imageHeightStyle}; width: ${imageWidth}px; padding: 0 ${+padding}px;`;
+ this.newStyleStr = `${styleStr}; ${imageHeightStyle}; max-width: ${imageWidth}px; padding: 0 ${+padding}px;`;
}
},
// 计算视觉优先的图片宽高
diff --git a/helpers/apiconfig.js b/helpers/apiconfig.js
index 4f20aa5..593df76 100644
--- a/helpers/apiconfig.js
+++ b/helpers/apiconfig.js
@@ -324,7 +324,7 @@ class apiconfig {
.replace(/img\[([^\s]+?)\]/g, function(img){ //转义图片
//return '';
- return '