Przeglądaj źródła

未查询到返回空

xiaohaizhao 1 rok temu
rodzic
commit
44bbf83969
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      utils/tool.js

+ 1 - 0
utils/tool.js

@@ -116,6 +116,7 @@ function mount() {
     };
     //compressed压缩图;thumbnail缩略图,hls转码视频,cover封面
     Vue.prototype.getSpecifiedImage = (item, type = 'thumbnail') => {
+        if (!item) return "";
         let v = item.subfiles.find(v => v.type == type);
         return v ? v.url : item.url;
     }