Browse Source

Update upload.js

Anyon 2 years ago
parent
commit
c5a8bc9141
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/view/api/upload.js

+ 1 - 1
app/admin/view/api/upload.js

@@ -71,7 +71,7 @@ define(['md5', 'notify'], function (SparkMD5, Notify, allowMime) {
                 file.notify = new NotifyExtend(file);
             }
         }), layui.each(files, function (index, file) {
-            // 禁传异常状态图片
+            // 禁传异常状态文件
             if (typeof file.xstate === 'number' && file.xstate === -1) return;
             // 图片限宽限高压缩
             if (/^image\/*$/.test(file.type) && file.maxWidth > 0 || file.maxHeight > 0 || file.quality !== 1) {