更新 GoView/src/api/path/project.api.ts

This commit is contained in:
IMaster 2025-03-10 09:40:13 +08:00
parent 779bf9e268
commit 562e60ec25

View File

@ -97,3 +97,16 @@ export const uploadFile = async (data: object) => {
httpErrorHandle()
}
}
// * 上传背景文件
export const uploadBackGroundFile = async (data: object) => {
try {
const res = await http(RequestHttpEnum.POST)<{
fileName: string,
fileurl: string,
}>(`${ModuleTypeEnum.PROJECT}/uploadBackGround`, data, ContentTypeEnum.FORM_DATA)
return res
} catch {
httpErrorHandle()
}
}