Ver Fonte

选择图片

xionghaojie há 3 anos atrás
pai
commit
487b1a3f41
1 ficheiros alterados com 2 adições e 1 exclusões
  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);
                 }
             }
         },