Browse Source

未查询到返回空

xiaohaizhao 1 year ago
parent
commit
44bbf83969
1 changed files with 1 additions and 0 deletions
  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;
     }