fix(测试跟踪): 评审评论显示问题 (#18205)

--bug=1017038 --user=宋昌昌 【测试跟踪】github#18052,【测试跟踪>>用例评审】评审结果先添加图片,然后再填写评审意见;最后点击保存。 评审信息中只能看到图片,没有评审信息 https://www.tapd.cn/55049933/s/1248984

Co-authored-by: song-cc-rock <changchang.song@fit2cloud.com>
This commit is contained in:
MeterSphere Bot 2022-09-22 16:22:32 +08:00 committed by GitHub
parent 3a29a3c71c
commit 99cab02ba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -183,6 +183,14 @@ export default {
if (this.srcList.indexOf(itemStrArr) < 0) { if (this.srcList.indexOf(itemStrArr) < 0) {
this.srcList.push(imgUrl); 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 { } else {
let inputStr = itemStr.substr(0, picNameIndex); let inputStr = itemStr.substr(0, picNameIndex);