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',