优化普通文件图片预览大小

pull/222/head
Karson 2020-08-13 16:20:28 +08:00
parent 285095f80f
commit 1d37f23a5e
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefin
var style = row.storage === 'upyun' ? '!/fwfh/120x90' : '';
return '<a href="' + row.fullurl + '" target="_blank"><img src="' + row.fullurl + style + '" alt="" style="max-height:90px;max-width:120px"></a>';
} else {
return '<a href="' + row.fullurl + '" target="_blank"><img src="' + Fast.api.fixurl("ajax/icon") + "?suffix=" + row.imagetype + '" alt=""></a>';
return '<a href="' + row.fullurl + '" target="_blank"><img src="' + Fast.api.fixurl("ajax/icon") + "?suffix=" + row.imagetype + '" alt="" style="max-height:90px;max-width:120px"></a>';
}
},
url: function (value, row, index) {