diff --git a/src/utils/http/README.md b/src/utils/http/README.md deleted file mode 100644 index 44a39f1de..000000000 --- a/src/utils/http/README.md +++ /dev/null @@ -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 }); -```