Browse Source

fix issue

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

+ 2
- 2
web_src/js/index.js View File

@@ -1214,7 +1214,7 @@ async function initRepository() {
files: $attachments
},
(data) => {
if (data.length === 0) {
if (data.length === 0 || data.content === '') {
$renderContent.html($('#no-content').html());
} else {
$renderContent.html(data.content);
@@ -1225,7 +1225,7 @@ async function initRepository() {
let imageShow = ''
const $content = $segment.parent();
if (!$content.find('.ui.small.images').length) {
if (data.attachments !== '') {
if (data.attachments !== '' && 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">'


Loading…
Cancel
Save