Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
gwcx committed Aug 10, 2023
1 parent 5140c59 commit ea67c85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions asset/js/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ function render_uploaded() {
var wpurl = resp.data.thumb == null ? WPRAW + resp.data.url : WPRAW + resp.data.thumb.url;
var wpcfurl = resp.data.thumb == null ? WPCFRAW + resp.data.url : WPCFRAW + resp.data.thumb.url;
var RAW = resp.data.thumb == null ? PhRAW + resp.data.url : PhRAW + resp.data.thumb.url;
$('#imagedetail').append(formatHtml({ url: url, code: url, wp: wpurl, wpcf: wpcfurl,raw: RAW }));
$('#htmlcode').append(formatHtml({ url: url, code: '<img src="' + url + '" />', wp: '<img src="' + wpurl + '" />',wpcf: '<img src="' + wpcfurl + '" />', raw: '<img src="' + RAW + '" />' }));
$('#bbcode').append(formatHtml({ url: url, code: '[img]' + url + '[/img]', wp: '[img]' + wpurl + '[/img]' ,wpcf: '[img]' + wpcfurl + '[/img]' , raw: '[img]' + RAW + '[/img]' }));
$('#markdown').append(formatHtml({ url: url, code: '![' + name + '](' + url + ')', wp: '![' + name + '](' + wpurl + ')',wpcf: '![' + name + '](' + wpcfurl + ')', raw: '![' + name + '](' + RAW + ')' }));
$('#imagedetail').append(formatHtml({ url: url, code: url, wp: wpurl, wpcf: wpcfurl, raw: RAW }));
$('#htmlcode').append(formatHtml({ url: url, code: '<img src="' + url + '" />', wp: '<img src="' + wpurl + '" />', wpcf: '<img src="' + wpcfurl + '" />', raw: '<img src="' + RAW + '" />' }));
$('#bbcode').append(formatHtml({ url: url, code: '[img]' + url + '[/img]', wp: '[img]' + wpurl + '[/img]' , wpcf: '[img]' + wpcfurl + '[/img]' , raw: '[img]' + RAW + '[/img]' }));
$('#markdown').append(formatHtml({ url: url, code: '![' + name + '](' + url + ')', wp: '![' + name + '](' + wpurl + ')', wpcf: '![' + name + '](' + wpcfurl + ')', raw: '![' + name + '](' + RAW + ')' }));
});
}

Expand Down

0 comments on commit ea67c85

Please sign in to comment.