From c5c6216637924f4f539efe8cf85dad290cbc01d7 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Mon, 13 Jun 2022 14:50:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E7=A7=BB=E9=99=A4=E6=96=87=E4=BB=B6=E5=90=8E?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=BF=9D=E5=AD=98=E6=96=87=E4=BB=B6=E4=BB=8D?= =?UTF-8?q?=E7=84=B6=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/index.js b/web_src/js/index.js index 34b5febc5..55f67da39 100755 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1225,7 +1225,7 @@ async function initRepository() { const $content = $segment.parent(); if (!$content.find('.ui.small.images').length) { if (data.attachments !== '') { - + $content.find('.ui.middle.aligned').html(data.attachments) } } else if (data.attachments === '') { $content From 5f466ccd968592aea5afbb3a012b15801cc44639 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Mon, 13 Jun 2022 15:30:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E7=A7=BB=E9=99=A4=E6=96=87=E4=BB=B6=E5=90=8E?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=BF=9D=E5=AD=98=E6=96=87=E4=BB=B6=E4=BB=8D?= =?UTF-8?q?=E7=84=B6=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/js/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/web_src/js/index.js b/web_src/js/index.js index 55f67da39..25aee8cac 100755 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1222,10 +1222,18 @@ async function initRepository() { highlight(this); }); } + let imageShow = '' const $content = $segment.parent(); if (!$content.find('.ui.small.images').length) { if (data.attachments !== '') { - $content.find('.ui.middle.aligned').html(data.attachments) + if ($content.find('.ui.middle.aligned').length === 0) { + imageShow += '
' + imageShow += '
' + imageShow += data.attachments + imageShow += '
' + $content.find('.ui.attached.segment').append(imageShow) + } + else { $content.find('.ui.middle.aligned').html(data.attachments) } } } else if (data.attachments === '') { $content