Explorar el Código

update 更改上传数据回填

疯狂的狮子li hace 3 años
padre
commit
64ec206ecb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);