Skip to content

Commit dfe19e1

Browse files
committed
docs: update documents domain
1 parent f5d0050 commit dfe19e1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README-en_US.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
English | [简体中文](README.md)
22

33
<p align="center">
4-
<a href="https://www.attojs.org">
4+
<a href="https://www.attojs.com">
55
<img
66
width="150"
77
src="https://raw.githubusercontent.com/AttoJS/art/master/vue-request-logo.png"
@@ -60,7 +60,7 @@ VueRequest is designed to provide developers with a convenient and fast way to m
6060

6161
## Documentation
6262

63-
- [English](https://www.attojs.org/)
63+
- [English](https://en.attojs.com/)
6464
- [中文文档](https://www.attojs.com/)
6565

6666
## Install
@@ -103,7 +103,7 @@ const { data, loading, error } = useRequest(service);
103103
</script>
104104
```
105105

106-
In this example, `useRequest` receives a `service` function. `service` is an asynchronous request function, which means you can use **axios** to retrieve data and return a **Promise**. More specific details can be found in the [documentation](https://www.attojs.org/guide/documentation/dataFetching.html).
106+
In this example, `useRequest` receives a `service` function. `service` is an asynchronous request function, which means you can use **axios** to retrieve data and return a **Promise**. More specific details can be found in the [documentation](https://www.attojs.com/guide/documentation/dataFetching.html).
107107

108108
The `useRequest` function also returns three values: `data`, `loading`, and `error`. While the request is still in progress, `data` will be set to `undefined` and `loading` will be `true`. Once the request is completed, `data` and `error` will be set based on the result, and the page will be rendered accordingly. This is because `data`, `loading`, and `error` are [Reactivity(Refs)](https://vuejs.org/guide/essentials/reactivity-fundamentals.html) in Vue, and their values will be updated based on the request status and result.
109109

@@ -113,7 +113,7 @@ VueRequest provides many features, such as error retry, caching, pagination, thr
113113

114114
### 1.Refresh On Focus
115115

116-
Sometimes, you need to ensure data consistency across multiple browser windows or synchronize page data to the latest state when a user's computer resumes from sleep mode. Using `refreshOnWindowFocus` can save you a lot of logic code. [Click here to go to the document](https://www.attojs.org/guide/documentation/refreshOnWindowFocus.html)
116+
Sometimes, you need to ensure data consistency across multiple browser windows or synchronize page data to the latest state when a user's computer resumes from sleep mode. Using `refreshOnWindowFocus` can save you a lot of logic code. [Click here to go to the document](https://www.attojs.com/guide/documentation/refreshOnWindowFocus.html)
117117

118118
```ts
119119
const { data, error, run } = useRequest(getUserInfo, {
@@ -126,7 +126,7 @@ const { data, error, run } = useRequest(getUserInfo, {
126126

127127
### 2.Polling Data
128128

129-
Sometimes, you need to ensure data synchronization across multiple devices. In this case, you can use `pollingInterval` provided by us to periodically re-request the API, ensuring data consistency across multiple devices. When a user modifies the data, the changes will be synced in real-time between two windows. [Click here to go to the document](https://www.attojs.org/guide/documentation/polling.html)
129+
Sometimes, you need to ensure data synchronization across multiple devices. In this case, you can use `pollingInterval` provided by us to periodically re-request the API, ensuring data consistency across multiple devices. When a user modifies the data, the changes will be synced in real-time between two windows. [Click here to go to the document](https://www.attojs.com/guide/documentation/polling.html)
130130

131131
```ts
132132
const { data, error, run } = useRequest(getUserInfo, {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ VueRequest 的目的是为开发人员提供一种方便、快速的方式来管
6161

6262
## 文档
6363

64-
- [English](https://www.attojs.org/)
64+
- [English](https://en.attojs.com/)
6565
- [中文文档](https://www.attojs.com/)
6666

6767
## 安装

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"vue-request",
1717
"vue request"
1818
],
19-
"homepage": "https://www.attojs.org",
19+
"homepage": "https://www.attojs.com",
2020
"bugs": "https://github.com/attojs/vue-request/issues",
2121
"repository": {
2222
"type": "git",

0 commit comments

Comments
 (0)