소스 검색

选择图片

xionghaojie 3 년 전
부모
커밋
487b1a3f41
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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);
                 }
             }
         },