chore: 修改上传地址的接口和图片的展示地址拼接

This commit is contained in:
奔跑的面条
2022-11-01 21:17:24 +08:00
parent 8ab64846d4
commit f9ed391c81
4 changed files with 10 additions and 18 deletions
+2 -2
View File
@@ -74,9 +74,9 @@ export const changeProjectReleaseApi = async (data: object) => {
}
// * 上传文件
export const uploadFile = async (url:string, data: object) => {
export const uploadFile = async (data: object) => {
try {
const res = await http(RequestHttpEnum.POST)(url, data, ContentTypeEnum.FORM_DATA);
const res = await http(RequestHttpEnum.POST)(`${ModuleTypeEnum.PROJECT}/upload`, data, ContentTypeEnum.FORM_DATA);
return res;
} catch {
httpErrorHandle();