Skip to content

Commit

Permalink
docs: fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Apr 23, 2024
1 parent ed90576 commit 1bd4659
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ download(await axle.getBlob('/url', { id: 1 }), 'filename')
#### Return both a success response and an error response

```js
import { download } from '@varlet/axle'
import { withResponse } from '@varlet/axle'

const { response, errorResponse } = await axle.get('/url')
const { response, errorResponse } = await withResponse(axle.get('/url'))
```

#### Common Header Operate
Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ download(await axle.getBlob('/url', { id: 1 }), 'filename')
#### 同时返回成功响应和错误响应

```js
import { download } from '@varlet/axle'
import { withResponse } from '@varlet/axle'

const { response, errorResponse } = await axle.get('/url')
const { response, errorResponse } = await withResponse(axle.get('/url'))
```

#### 公共 header 操作
Expand Down
4 changes: 2 additions & 2 deletions packages/axle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ download(await axle.getBlob('/url', { id: 1 }), 'filename')
#### Return both a success response and an error response

```js
import { download } from '@varlet/axle'
import { withResponse } from '@varlet/axle'

const { response, errorResponse } = await axle.get('/url')
const { response, errorResponse } = await withResponse(axle.get('/url'))
```

#### Common Header Operate
Expand Down
4 changes: 2 additions & 2 deletions packages/axle/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ download(await axle.getBlob('/url', { id: 1 }), 'filename')
#### 同时返回成功响应和错误响应

```js
import { download } from '@varlet/axle'
import { withResponse } from '@varlet/axle'

const { response, errorResponse } = await axle.get('/url')
const { response, errorResponse } = await withResponse(axle.get('/url'))
```

#### 公共 header 操作
Expand Down

0 comments on commit 1bd4659

Please sign in to comment.