From 99cab02ba40dca4da193cc2f708d03449d2dabe1 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Thu, 22 Sep 2022 16:22:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E8=AF=84=E8=AE=BA=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#18205)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1017038 --user=宋昌昌 【测试跟踪】github#18052,【测试跟踪>>用例评审】评审结果先添加图片,然后再填写评审意见;最后点击保存。 评审信息中只能看到图片,没有评审信息 https://www.tapd.cn/55049933/s/1248984 Co-authored-by: song-cc-rock --- .../components/track/review/commom/ReviewCommentItem.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/business/components/track/review/commom/ReviewCommentItem.vue b/frontend/src/business/components/track/review/commom/ReviewCommentItem.vue index 072faa8bd6..2e5619726b 100644 --- a/frontend/src/business/components/track/review/commom/ReviewCommentItem.vue +++ b/frontend/src/business/components/track/review/commom/ReviewCommentItem.vue @@ -183,6 +183,14 @@ export default { if (this.srcList.indexOf(itemStrArr) < 0) { this.srcList.push(imgUrl); } + if (endUrlIndex !== itemStr.length - 1) { + let inputStr = itemStr.substr(endUrlIndex + 1, itemStr.length - 1); + if (this.imgDescription === "") { + this.imgDescription = inputStr; + } else { + this.imgDescription = "\n" + inputStr; + } + } } } else { let inputStr = itemStr.substr(0, picNameIndex);