[优化] 代码优化Format

This commit is contained in:
ryan
2026-06-04 09:31:27 +08:00
parent fbb0909638
commit e117e314d9
28 changed files with 6394 additions and 3014 deletions
@@ -49,10 +49,13 @@ export function uploadPagesDeployment(
const formData = new FormData();
formData.append('package', file);
formData.append('entry_file', entryFile);
return apiRequest<PagesDeployment>(`/pages/${projectId}/deployments/upload`, {
method: 'POST',
body: formData,
});
return apiRequest<PagesDeployment>(
`/pages/${projectId}/deployments/upload`,
{
method: 'POST',
body: formData,
},
);
}
return new Promise<PagesDeployment>((resolve, reject) => {
@@ -86,7 +89,12 @@ export function uploadPagesDeployment(
reject(new ApiError(payload?.message || '请求失败', xhr.status));
}
} else {
reject(new ApiError(payload?.message || `请求失败(${xhr.status})`, xhr.status));
reject(
new ApiError(
payload?.message || `请求失败(${xhr.status})`,
xhr.status,
),
);
}
};