From 24b1e33bbbeb7f22c02263729ded7347d68c5cac Mon Sep 17 00:00:00 2001
From: mixtan <424491071@qq.com>
Date: Mon, 29 Sep 2025 19:25:23 +0800
Subject: [PATCH] =?UTF-8?q?update:=20=E5=A4=84=E7=90=86=E8=81=8A=E5=A4=A9i?=
=?UTF-8?q?m=E5=9B=BE=E7=89=87=E9=80=82=E9=85=8D=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/u-parse/components/wxParseImg.vue | 4 ++--
helpers/apiconfig.js | 2 +-
im/chat/chat.vue | 6 +++---
im/chat/chat_nn.vue | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
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 '