mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
文件管理文件预览完成;
This commit is contained in:
BIN
public/static/images/error.jpg
Normal file
BIN
public/static/images/error.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
@@ -48,7 +48,13 @@
|
||||
<tr>
|
||||
<td>{$vo.id}</td>
|
||||
<td>
|
||||
|
||||
{switch $vo.mime_type}
|
||||
{case image/png|image/gif|image/jpeg }
|
||||
<a href="{$vo.src}" target="_blank"><img onerror="this.src = '/static/images/error.jpg'" src="{$vo.src}" alt=""></a>
|
||||
{/case}
|
||||
{default /}
|
||||
<a href="{$vo.src}" target="_blank" class="layui-btn layui-btn-sm">打开源文件</a>
|
||||
{/switch}
|
||||
</td>
|
||||
<td>
|
||||
<p>保存名称:{$vo->getData('save_name')}</p>
|
||||
|
||||
Reference in New Issue
Block a user