🐛 修复使用oss时,选择图片路径不正确的问题

pull/139/head^2
ruibaby 2019-01-29 22:19:28 +08:00
parent c44d4371f1
commit 21abfa406c
3 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@
</div>
<div class="box-footer">
<button type="button" class="btn btn-danger btn-sm pull-left" onclick="btn_delete()"><@spring.message code="common.btn.delete" /></button>
<button type="button" class="btn btn-info btn-sm pull-right btn-copy" data-clipboard-text="<#if !attachment.attachLocation?? || attachment.attachLocation! == 'SERVER'>${options.blog_url!}</#if>${attachment.attachPath}"><@spring.message code='admin.attachments.modal.form.btn.copy-path' /></button>
<button type="button" class="btn btn-info btn-sm pull-right btn-copy" data-clipboard-text="<#if !attachment.attachLocation?? || attachment.attachLocation! == 'server'>${options.blog_url!}</#if>${attachment.attachPath}"><@spring.message code='admin.attachments.modal.form.btn.copy-path' /></button>
</div>
</form>
</div>

View File

@ -26,7 +26,7 @@
<div class="row">
<#list attachments.content as attachment>
<div class="col-lg-2 col-md-2 col-sm-6 col-xs-6 div-thumbnail">
<a href="javascript:void(0)" class="thumbnail" data-clipboard-text="${options.blog_url!}${attachment.attachPath}">
<a href="javascript:void(0)" class="thumbnail" data-clipboard-text="<#if !attachment.attachLocation?? || attachment.attachLocation! == 'server'>${options.blog_url!}</#if>${attachment.attachPath}">
<img src="${attachment.attachSmallPath}" class="img-responsive">
</a>
</div>

View File

@ -26,7 +26,7 @@
<div class="row">
<#list attachments.content as attachment>
<div class="col-lg-2 col-md-2 col-sm-6 col-xs-6 div-thumbnail">
<a href="javascript:void(0)" class="thumbnail" onclick="doTransport('${attachment.attachPath}')">
<a href="javascript:void(0)" class="thumbnail" onclick="doTransport('<#if !attachment.attachLocation?? || attachment.attachLocation! == 'server'>${options.blog_url!}</#if>${attachment.attachPath}')">
<img src="${attachment.attachSmallPath}" class="img-responsive">
</a>
</div>