Merge branch 'master' of https://gitee.com/openInula/inula into reconciler

This commit is contained in:
13659257719 2023-10-09 16:59:44 +08:00
commit 61ad99bdb1
5 changed files with 8 additions and 2 deletions

View File

@ -6,7 +6,7 @@
## 技术架构 ## 技术架构
![输入图片说明](https://gitee.com/openInula/inula-doc/raw/master/static/img/structure.PNG) ![输入图片说明](https://gitee.com/openInula/inula-docs/raw/master/static/img/structure.png)
### 核心能力 ### 核心能力

View File

@ -110,6 +110,7 @@ export const fetchRequest = (config: IrRequestConfig): Promise<IrResponse> => {
headers: headersObj, headers: headersObj,
config, config,
request: null, request: null,
responseURL: response.url
}; };
const responseBody = onDownloadProgress const responseBody = onDownloadProgress

View File

@ -98,6 +98,7 @@ export const ieFetchRequest = (config: IrRequestConfig): Promise<IrResponse> =>
headers: response.headers, headers: response.headers,
config, config,
request: null, request: null,
responseURL: response.url
}; };
// 根据 responseType 选择相应的解析方法 // 根据 responseType 选择相应的解析方法

View File

@ -74,7 +74,8 @@ function processUploadProgress(
statusText: xhr.statusText, statusText: xhr.statusText,
headers: xhr.getAllResponseHeaders(), headers: xhr.getAllResponseHeaders(),
config: config, config: config,
} request: xhr
};
if (config.validateStatus!(xhr.status)) { if (config.validateStatus!(xhr.status)) {
// 如果 fetch 请求已经成功或者拒绝,则此处不生效 // 如果 fetch 请求已经成功或者拒绝,则此处不生效

View File

@ -95,6 +95,9 @@ export type IrResponse<T = any> = {
// 响应事件消息 // 响应事件消息
event?: string; event?: string;
// 响应对象上的完整 URL
responseURL?: string;
}; };
// Ir 类接口类型 // Ir 类接口类型