更新图片错误图标;发布新版本

This commit is contained in:
2023-09-27 09:31:32 +08:00
parent a7a9407dbc
commit 7f5483c46d
3 changed files with 3 additions and 3 deletions

View File

@@ -12,12 +12,12 @@ use think\console\Output;
class VersionBase extends Command
{
public const VERSION = 'v2.0.51';
public const VERSION = 'v2.0.52';
public const LAYUI_VERSION = '2.8.17';
public const COMMENT = [
'修复快捷查询错误',
'更新图片错误图标',
'发布新版本',
];

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -2124,7 +2124,7 @@
if (extGroup.image.indexOf(ext) != -1) {
// 是图片
liHtml += '<li><a title="点击预览"><img src="' + v + '" data-images onerror="this.src=\'/admin/images/upload-icons/' + uploadIcon + '.png\';this.onerror=null"></a><small class="uploads-delete-tip bg-red badge" data-upload-delete="' + uploadName + '" data-upload-filename-field="' + uploadFilenameField + '" data-upload-url="' + v + '" data-upload-sign="' + uploadSign + '">×</small></li>\n';
liHtml += '<li><a title="点击预览"><img src="' + v + '" data-images onerror="this.src=\'/static/admin/images/upload-icons/image-error.png\';this.onerror=null"></a><small class="uploads-delete-tip bg-red badge" data-upload-delete="' + uploadName + '" data-upload-filename-field="' + uploadFilenameField + '" data-upload-url="' + v + '" data-upload-sign="' + uploadSign + '">×</small></li>\n';
} else {
// 不是图片
// 遍历extGroup数组找到扩展名所在的索引