From 2763d5c3da3a64d48b595811feee4e90be232260 Mon Sep 17 00:00:00 2001 From: chenrui <1950717904@qq.com> Date: Thu, 6 Jun 2024 16:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/fileUpload.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util/fileUpload.js b/src/util/fileUpload.js index b0a34bb..05e8fc5 100644 --- a/src/util/fileUpload.js +++ b/src/util/fileUpload.js @@ -3,13 +3,13 @@ import { baseUrl } from "../config/env"; import axios from 'axios'; const uploadFile = (files,callback) => { - // files.status = "uploading"; - // files.message = "上传中..."; - // files.status = "uploading"; - // files.message = "上传中..."; + files.status = "uploading"; + files.message = "上传中..."; + files.status = "uploading"; + // files.message = "上传中..."; // 需要使用 FormData 进行文件上传 let form = new FormData(); - form.append("file", files); + form.append("file", files.file); axios({ method: "post", url: baseUrl+ "/common/upload",