mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-30 09:24:46 +08:00
chore: 删除 http
的 README.md
,看文档 http请求
即可
This commit is contained in:
parent
e4a87e2138
commit
fb734f3394
@ -1,25 +0,0 @@
|
|||||||
## 用法
|
|
||||||
|
|
||||||
### Get 请求
|
|
||||||
|
|
||||||
```
|
|
||||||
import { http } from "@/utils/http";
|
|
||||||
|
|
||||||
// params传参
|
|
||||||
http.request('get', '/xxx', { params: param });
|
|
||||||
|
|
||||||
// url拼接传参
|
|
||||||
http.request('get', '/xxx?message=' + msg);
|
|
||||||
```
|
|
||||||
|
|
||||||
### Post 请求
|
|
||||||
|
|
||||||
```
|
|
||||||
import { http } from "@/utils/http";
|
|
||||||
|
|
||||||
// params传参
|
|
||||||
http.request('post', '/xxx', { params: param });
|
|
||||||
|
|
||||||
// data传参
|
|
||||||
http.request('post', '/xxx', { data: param });
|
|
||||||
```
|
|
Loading…
x
Reference in New Issue
Block a user