Merge branch 'master' of https://gitee.com/openInula/inula into reconciler
This commit is contained in:
commit
61ad99bdb1
|
@ -6,7 +6,7 @@
|
|||
|
||||
## 技术架构
|
||||
|
||||

|
||||

|
||||
|
||||
### 核心能力
|
||||
|
||||
|
|
|
@ -110,6 +110,7 @@ export const fetchRequest = (config: IrRequestConfig): Promise<IrResponse> => {
|
|||
headers: headersObj,
|
||||
config,
|
||||
request: null,
|
||||
responseURL: response.url
|
||||
};
|
||||
|
||||
const responseBody = onDownloadProgress
|
||||
|
|
|
@ -98,6 +98,7 @@ export const ieFetchRequest = (config: IrRequestConfig): Promise<IrResponse> =>
|
|||
headers: response.headers,
|
||||
config,
|
||||
request: null,
|
||||
responseURL: response.url
|
||||
};
|
||||
|
||||
// 根据 responseType 选择相应的解析方法
|
||||
|
|
|
@ -74,7 +74,8 @@ function processUploadProgress(
|
|||
statusText: xhr.statusText,
|
||||
headers: xhr.getAllResponseHeaders(),
|
||||
config: config,
|
||||
}
|
||||
request: xhr
|
||||
};
|
||||
|
||||
if (config.validateStatus!(xhr.status)) {
|
||||
// 如果 fetch 请求已经成功或者拒绝,则此处不生效
|
||||
|
|
|
@ -95,6 +95,9 @@ export type IrResponse<T = any> = {
|
|||
|
||||
// 响应事件消息
|
||||
event?: string;
|
||||
|
||||
// 响应对象上的完整 URL
|
||||
responseURL?: string;
|
||||
};
|
||||
|
||||
// Ir 类接口类型
|
||||
|
|
Loading…
Reference in New Issue