Skip to content

Commit

Permalink
docs: improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Dec 2, 2024
1 parent ec1bbab commit a8b1ae1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,11 @@ const axle = createAxle(/** @see https://axios-http.com **/)
const useAxle = createUseAxle({ axle })
const [users, getUsers, { loading: isUsersLoading, downloadProgress: usersDownloadProgress }] = useAxle({
value: [],
method: 'get',
url: '/user',
})
const [roles, getRoles, { loading: isRolesLoading, downloadProgress: rolesDownloadProgress }] = useAxle({
value: [],
method: 'get',
url: '/role',
})
Expand Down Expand Up @@ -511,13 +509,11 @@ before:
```html
<script setup>
const [users, getUsers, { loading: isUsersLoading }] = useAxle({
value: [],
method: 'get',
url: '/user',
})
const [posts, getPosts, { loading: isPostsLoading }] = useAxle({
value: [],
method: 'get',
url: '/post',
})
Expand All @@ -536,13 +532,11 @@ after:
```html
<script setup>
const [users, getUsers] = useAxle({
value: [],
method: 'get',
url: '/user',
})
const [posts, getPosts] = useAxle({
value: [],
method: 'get',
url: '/post',
})
Expand Down
6 changes: 0 additions & 6 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,11 @@ const axle = createAxle(/** @see https://axios-http.com **/)
const useAxle = createUseAxle({ axle })
const [users, getUsers, { loading: isUsersLoading, downloadProgress: usersDownloadProgress }] = useAxle({
value: [],
method: 'get',
url: '/user',
})
const [roles, getRoles, { loading: isRolesLoading, downloadProgress: rolesDownloadProgress }] = useAxle({
value: [],
method: 'get',
url: '/role',
})
Expand Down Expand Up @@ -511,13 +509,11 @@ async function handleDelete(id: string) {
```html
<script setup>
const [users, getUsers, { loading: isUsersLoading }] = useAxle({
value: [],
method: 'get',
url: '/user',
})
const [posts, getPosts, { loading: isPostsLoading }] = useAxle({
value: [],
method: 'get',
url: '/post',
})
Expand All @@ -536,13 +532,11 @@ const [posts, getPosts, { loading: isPostsLoading }] = useAxle({
```html
<script setup>
const [users, getUsers] = useAxle({
value: [],
method: 'get',
url: '/user',
})
const [posts, getPosts] = useAxle({
value: [],
method: 'get',
url: '/post',
})
Expand Down

0 comments on commit a8b1ae1

Please sign in to comment.