Browse Source

Merge pull request 'fix-2180' (#2265) from fix-2180 into V20220616

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2265
Reviewed-by: liuzx <liuzx@pcl.ac.cn>
pull/2273/head
liuzx 3 years ago
parent
commit
5c959d2d82
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);
});
}
let imageShow = ''
const $content = $segment.parent();
if (!$content.find('.ui.small.images').length) {
if (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 === '') {
$content


Loading…
Cancel
Save