Browse Source

任务中的评论移除文件后点击保存文件仍然在

tags/v1.22.6.1^2
zhoupzh 3 years ago
parent
commit
5f466ccd96
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      web_src/js/index.js

+ 9
- 1
web_src/js/index.js View File

@@ -1222,10 +1222,18 @@ async function initRepository() {
highlight(this); highlight(this);
}); });
} }
let imageShow = ''
const $content = $segment.parent(); const $content = $segment.parent();
if (!$content.find('.ui.small.images').length) { if (!$content.find('.ui.small.images').length) {
if (data.attachments !== '') { if (data.attachments !== '') {
$content.find('.ui.middle.aligned').html(data.attachments)
if ($content.find('.ui.middle.aligned').length === 0) {
imageShow += '<div class="ui clearing divider"></div>'
imageShow += '<div class="ui middle aligned padded grid">'
imageShow += data.attachments
imageShow += '</div>'
$content.find('.ui.attached.segment').append(imageShow)
}
else { $content.find('.ui.middle.aligned').html(data.attachments) }
} }
} else if (data.attachments === '') { } else if (data.attachments === '') {
$content $content


Loading…
Cancel
Save