Browse Source

update 更改上传数据回填

疯狂的狮子li 3 năm trước cách đây
mục cha
commit
64ec206ecb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      ruoyi-ui/src/components/FileUpload/index.vue

+ 1 - 1
ruoyi-ui/src/components/FileUpload/index.vue

@@ -148,7 +148,7 @@ export default {
     handleUploadSuccess(res, file) {
       if (res.code === 200) {
         this.$message.success("上传成功");
-        this.fileList.push({ name: res.data.fileName, url: res.data.fileName });
+        this.fileList.push({ name: res.data.fileName, url: res.data.url });
         this.$emit("input", this.listToString(this.fileList));
       } else {
         this.$message.error(res.msg);