ソースを参照

判断type类型

zhangyu 5 年 前
コミット
dcd96f26c1
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/utils/handsontable/mainText.js

+ 2 - 2
src/utils/handsontable/mainText.js

@@ -7,9 +7,9 @@ const text = {
         if (value instanceof Array && value.length > 0) {
             let i = 0
             value.map(item => {
-                // if (item.type == "image" || item.type == "video") {
+                if (item.type == "image" || item.type == "video") {
                     i++
-                // }
+                }
             })
             td.innerHTML = "已上传:" + i;
         } else {