|
@@ -18,7 +18,7 @@ function fileList(list) {
|
|
|
list[i].cover = `/static/image/file/unknown.png`
|
|
|
const suffix = list[i].postfix.toLowerCase();
|
|
|
if (suffix != "folder") {
|
|
|
- for (var key in suffixList) {
|
|
|
+ for (let key in suffixList) {
|
|
|
if (suffixList[key].some(value => value == suffix)) {
|
|
|
list[i].fileType = key;
|
|
|
if (key == 'image') {
|