Bladeren bron

选择图片

xionghaojie 3 jaren geleden
bovenliggende
commit
487b1a3f41
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      src/components/materialManage.vue

+ 2 - 1
src/components/materialManage.vue

@@ -187,9 +187,10 @@ export default {
             } else { //选择图片
                 that.visible = false;
                 if (that.itemOrSrc && that.itemOrSrc == 'item') {
+                    that.dataList[index].url=that.dataList[index].linkUrl
                     that.onSuccess.call(this, that.dataList[index]);
                 } else {
-                    that.onSuccess.call(this, that.dataList[index].src);
+                    that.onSuccess.call(this, that.dataList[index].linkUrl);
                 }
             }
         },