Browse Source

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

Karson 5 years ago
parent
commit
1d37f23a5e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/assets/js/backend/general/attachment.js

+ 1 - 1
public/assets/js/backend/general/attachment.js

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