refactor: ♻️ 导入增加错误提示信息

导入增加错误提示信息
This commit is contained in:
Theo
2025-01-14 11:03:22 +08:00
parent 2cae42e8d9
commit 3413d3fcbe
3 changed files with 137 additions and 65 deletions

View File

@@ -126,7 +126,7 @@ const UserAPI = {
import(deptId: number, file: File) {
const formData = new FormData();
formData.append("file", file);
return request({
return request<any, ExcelResult>({
url: `${USER_BASE_URL}/import`,
method: "post",
params: { deptId: deptId },