From fb734f33944dd11ff896c818140f25633b35857b Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Thu, 17 Nov 2022 15:48:03 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=20`http`=20?= =?UTF-8?q?=E7=9A=84=20`README.md`=EF=BC=8C=E7=9C=8B=E6=96=87=E6=A1=A3=20`?= =?UTF-8?q?http=E8=AF=B7=E6=B1=82`=20=E5=8D=B3=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http/README.md | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/utils/http/README.md 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 }); -```