fix(测试跟踪): 测试计划用例执行保存后,之前评论中的图片会被删除

--bug=1041507 --user=陈建星 【测试跟踪】github#31198, 测试计划-测试用例执行,添加评论上传图片,有的图片可以展示,有的图片不能展示 https://www.tapd.cn/55049933/s/1531414
This commit is contained in:
AgAngle 2024-06-19 10:38:08 +08:00 committed by Craftsman
parent 30237959ef
commit 6ef9283084
1 changed files with 7 additions and 0 deletions

View File

@ -364,6 +364,13 @@ export default {
let mdImages = [];
mdImages.push(...parseMdImage(param.description));
mdImages.push(...parseMdImage(param.actualResult));
let comments = this.$refs.comment.comments;
if (comments) {
comments.forEach((item) => {
mdImages.push(...parseMdImage(item.description));
});
}
//
saveMarkDownImg({
projectId: getCurrentProjectID(),