From 62159a50ced109472303f045cb6123f45068278c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Tue, 9 Dec 2025 18:26:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E8=BD=AC=E7=8F=AD/=E9=80=80=E7=8F=AD=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/userCenter.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/api/userCenter.ts b/src/api/userCenter.ts index d3d29c3..1695c1d 100644 --- a/src/api/userCenter.ts +++ b/src/api/userCenter.ts @@ -10,13 +10,14 @@ import { Ref } from "vue"; * @description 转班学生导入 * @return {void} */ -export function ImportTransferStudent(data) { - +export function ImportTransferStudent(file) { + let formData = new FormData(); + formData.append("file", file); return http.request>( "post", `userCenter/back/users/importtransferstudent`, { - data + data: formData }, { headers: { @@ -30,12 +31,14 @@ export function ImportTransferStudent(data) { * @description 退班学生导入 * @return {void} */ -export function ImportStudentOut(data: any) { +export function ImportStudentOut(file: any) { + let formData = new FormData(); + formData.append("file", file); return http.request>( "post", `userCenter/back/users/importstudentout`, { - data + data: formData }, { headers: {