🚧 improve image uploading

This commit is contained in:
2025-01-14 17:34:55 +08:00
parent 9356c00815
commit e1ee33946d
6 changed files with 165 additions and 132 deletions

10
src/api/file/index.ts Normal file
View File

@@ -0,0 +1,10 @@
import {service} from "@/utils/alova/service.ts";
export const uploadFile = (formData) => {
return service.Post('/api/auth/file/uploads', formData, {
meta: {
ignoreToken: false,
signature: false,
}
});
};