From 6fce781794acee702f2f23e86d156f8a55e1392d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com>
Date: Thu, 1 Feb 2024 15:38:11 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=A5=E5=8F=A3=E5=90=8D=E7=BB=9F?=
=?UTF-8?q?=E4=B8=80=E5=A2=9E=E5=8A=A0API=E5=90=8E=E7=BC=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/index/request.vue | 18 +++++++++---------
src/service/foo.ts | 4 ++--
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/pages/index/request.vue b/src/pages/index/request.vue
index 10d0396..b989585 100644
--- a/src/pages/index/request.vue
+++ b/src/pages/index/request.vue
@@ -10,10 +10,10 @@
-
+
请求数据如下
{{ JSON.stringify(data) }}
-
+
请求数据如下
{{ JSON.stringify(data2) }}
@@ -32,24 +32,24 @@
diff --git a/src/service/foo.ts b/src/service/foo.ts
index 847bd60..30cc470 100644
--- a/src/service/foo.ts
+++ b/src/service/foo.ts
@@ -4,7 +4,7 @@ import type { IFooItem } from './foo.d'
export { IFooItem }
/** get 请求 */
-export const getFoo = (name: string) => {
+export const getFooAPI = (name: string) => {
return http({
url: `/foo`,
method: 'GET',
@@ -13,7 +13,7 @@ export const getFoo = (name: string) => {
}
/** get 请求 */
-export const postFoo = (name: string) => {
+export const postFooAPI = (name: string) => {
return http({
url: `/foo`,
method: 'POST',