@clownlee/http 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @clownlee/request
|
|
2
2
|
|
|
3
3
|
Axios 公共通用库,提供统一的 HTTP 请求能力和自动 token 刷新功能。
|
|
4
4
|
|
|
@@ -15,13 +15,13 @@ Axios 公共通用库,提供统一的 HTTP 请求能力和自动 token 刷新
|
|
|
15
15
|
## 安装
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install @
|
|
18
|
+
npm install @clownlee/request
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## 使用示例
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
|
-
import { init } from '@
|
|
24
|
+
import { init } from '@clownlee/request'
|
|
25
25
|
import { useUserStore } from '@/stores/user'
|
|
26
26
|
|
|
27
27
|
const userStore = useUserStore()
|