mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-11 09:46:37 +08:00
fix: 修复 Pages 部署包上传报「请求超时,请稍后重试」
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type {AxiosProgressEvent, InternalAxiosRequestConfig} from 'axios';
|
||||
|
||||
import apiClient from '@/lib/services/core/api-client';
|
||||
import {apiConfig} from '@/lib/services/core/config';
|
||||
import type {ApiResponse} from '@/lib/services/core';
|
||||
|
||||
import {OpenFlareBaseService} from './base.service';
|
||||
@@ -94,6 +95,7 @@ export class PagesService extends OpenFlareBaseService {
|
||||
this.getFullPath(path),
|
||||
formData,
|
||||
{
|
||||
timeout: apiConfig.uploadTimeout,
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
onUploadProgress: (event: AxiosProgressEvent) => {
|
||||
if (!onProgress || !event.total) return;
|
||||
|
||||
Reference in New Issue
Block a user