Browse Source

图片上传图片

pm 1 year ago
parent
commit
fd83d82c81
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/components/ImageUpload/index.vue

+ 3 - 2
src/components/ImageUpload/index.vue

@@ -94,7 +94,7 @@ export default {
           this.fileList = list.map(item => {
             if (typeof item === "string") {
               if (item.indexOf(this.baseUrl) === -1) {
-                  // item = { name: this.baseUrl + item, url: this.baseUrl + item };
+                  // item = { name: this.baseUrl + item, url: this.baseUrl + item };k
                 item={name: item, url: item}
               } else {
                   item = { name: item, url: item };
@@ -133,7 +133,8 @@ export default {
         this.fileList = this.fileList.concat(this.uploadList);
         this.uploadList = [];
         this.number = 0;
-        this.$emit("onUploaded", this.listToString(this.fileList));
+        // this.$emit("onUploaded", this.listToString(this.fileList));
+        this.$emit("onUploaded", this.fileList)
         this.$modal.closeLoading();
       }
     },