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);
                 }
             }
         },