qiushang 1 kuukausi sitten
vanhempi
commit
cd4175f814
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      src/renderer/components/home.vue

+ 3 - 1
src/renderer/components/home.vue

@@ -1502,7 +1502,9 @@
 											let regex = /\/\/img[0-9]+.360buyimg.com\S+.(jpg|jpeg|png|gif|avif|tif|tiff)/g;
 											let detailImgArr = [];
 											if(detailInfo && detailInfo.content){
-												detailImgArr = detailInfo.content.match(regex);
+												if(detailInfo.content.match(regex)){
+													detailImgArr = detailInfo.content.match(regex);
+												}
 											}
 											
 											jdImgInfo.detailImg = detailImgArr;