Skip to content

Commit 9ab7ed0

Browse files
committed
2 parents eb55a9b + 7ec678f commit 9ab7ed0

File tree

8 files changed

+30
-6
lines changed

8 files changed

+30
-6
lines changed

docs/tutorial/02-getting-started/03-basic/05-global-interceptor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ flowchart LR
6666
```javascript
6767
const alovaInstance = createAlova({
6868
// ...
69-
//Use two items of the array to specify the interceptor for successful request and the interceptor for failed request respectively.
69+
// Use responded object to specify the interceptor for successful request and the interceptor for failed request respectively.
7070
responded: {
7171
// highlight-start
7272
// Interceptor for successful request

docs/tutorial/03-client/01-strategy/14-use-sse.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ use hook
1313

1414
> Before using extension hooks, make sure you are familiar with the basic usage of alova.
1515
16-
A use hook that can automatically retry a request failure, you can use it for important requests.
16+
This hook is implemented using the `EventSource` API.
17+
18+
::: warning note
19+
20+
When you are not to be used in useSSE add custom header, because the standard [does not contain the behavior](https://stackoverflow.com/a/36226251)
21+
22+
:::
1723

1824
## Features
1925

i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorial/02-getting-started/03-basic/05-global-interceptor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ flowchart LR
6666
```javascript
6767
const alovaInstance = createAlova({
6868
// ...
69-
// 使用数组的两个项,分别指定请求成功的拦截器和请求失败的拦截器
69+
// 使用 responded 对象分别指定请求成功的拦截器和请求失败的拦截器
7070
responded: {
7171
// highlight-start
7272
// 请求成功的拦截器

i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorial/03-client/01-strategy/14-use-sse.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ use hook
1515
1616
通过 Server-sent Events(SSE)请求,内部使用`EventSource`实现。
1717

18+
:::warning 注意
19+
20+
你不可以在使用 useSSE 时添加自定义 header,因为该标准[不包含这一行为](https://stackoverflow.com/a/36226251)
21+
22+
:::
23+
1824
## 特性
1925

2026
- 更加简洁易用的使用方式;

i18n/zh-CN/docusaurus-plugin-content-docs/version-v2/tutorial/02-getting-started/05-global-interceptor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ flowchart LR
6666
```javascript
6767
const alovaInstance = createAlova({
6868
// ...
69-
// 使用数组的两个项,分别指定请求成功的拦截器和请求失败的拦截器
69+
// 使用 responded 对象分别指定请求成功的拦截器和请求失败的拦截器
7070
responded: {
7171
// highlight-start
7272
// 请求成功的拦截器

i18n/zh-CN/docusaurus-plugin-content-docs/version-v2/tutorial/05-strategy/13-useSSE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ use hook
1515
1616
通过 Server-sent Events(SSE)请求,内部使用`EventSource`实现。
1717

18+
:::warning 注意
19+
20+
你不可以在使用 useSSE 时添加自定义 header,因为该标准[不包含这一行为](https://stackoverflow.com/a/36226251)
21+
22+
:::
23+
1824
## 特性
1925

2026
- 更加简洁易用的使用方式;

versioned_docs/version-v2/tutorial/02-getting-started/05-global-interceptor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ flowchart LR
6666
```javascript
6767
const alovaInstance = createAlova({
6868
// ...
69-
//Use two items of the array to specify the interceptor for successful request and the interceptor for failed request respectively.
69+
// Use responded object to specify the interceptor for successful request and the interceptor for failed request respectively.
7070
responded: {
7171
// highlight-start
7272
// Interceptor for successful request

versioned_docs/version-v2/tutorial/05-strategy/13-useSSE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ use hook
1313

1414
> Before using extension hooks, make sure you are familiar with the basic usage of alova.
1515
16-
A use hook that can automatically retry a request failure, you can use it for important requests.
16+
This hook is implemented using the `EventSource` API.
17+
18+
::: warning note
19+
20+
When you are not to be used in useSSE add custom header, because the standard [does not contain the behavior](https://stackoverflow.com/a/36226251)
21+
22+
:::
1723

1824
## Features
1925

0 commit comments

Comments
 (0)