mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-10 17:26:38 +08:00
fix: 修复 Pages 部署包上传报「请求超时,请稍后重试」
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type {InternalAxiosRequestConfig} from 'axios';
|
||||
|
||||
import {apiConfig} from '../core/config';
|
||||
import {BaseService} from '../core/base.service';
|
||||
import type {ListUploadsResponse, Upload, UploadImageResponse} from './types';
|
||||
|
||||
@@ -23,6 +24,7 @@ export class UploadService extends BaseService {
|
||||
}
|
||||
|
||||
return this.post<Upload>('', formData, {
|
||||
timeout: apiConfig.uploadTimeout,
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
} as InternalAxiosRequestConfig);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user