From 3d05d2540a1381c21ba4728926bdb0707b333c16 Mon Sep 17 00:00:00 2001 From: Yui <44658840+HereIsYui@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:28:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=8E=8B=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/js/chat-room.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/js/chat-room.js b/src/main/resources/js/chat-room.js index b890496f..8dc779ba 100644 --- a/src/main/resources/js/chat-room.js +++ b/src/main/resources/js/chat-room.js @@ -1434,9 +1434,9 @@ border-bottom: none; dom.innerHTML = content; let imgList = dom.querySelectorAll('img'); imgList.forEach(ele=>{ - //if(ele.src.startsWith('https://file.fishpi.cn')){ - ele.src = ele.src + '?imageView2/1/w/150/h/150/interlace/0/q/90' - //} + if(ele.src.startsWith('https://file.fishpi.cn')){ + ele.src = ele.src.split('?')[0] + '?imageView2/0/w/150/h/150/interlace/0/q/90' + } }) return dom.innerHTML; },