Procházet zdrojové kódy

update 更改上传数据回填

疯狂的狮子li před 3 roky
rodič
revize
64ec206ecb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);