diff --git a/src/http/apis/table/index.ts b/src/common/apis/table/index.ts similarity index 94% rename from src/http/apis/table/index.ts rename to src/common/apis/table/index.ts index ed7ffd3..98dd521 100644 --- a/src/http/apis/table/index.ts +++ b/src/common/apis/table/index.ts @@ -1,5 +1,5 @@ import type * as Table from "./type" -import { request } from "@/http/request" +import { request } from "@/http/axios" /** 增 */ export function createTableDataApi(data: Table.CreateOrUpdateTableRequestData) { diff --git a/src/http/apis/table/type.ts b/src/common/apis/table/type.ts similarity index 100% rename from src/http/apis/table/type.ts rename to src/common/apis/table/type.ts diff --git a/src/http/apis/user/index.ts b/src/common/apis/user/index.ts similarity index 83% rename from src/http/apis/user/index.ts rename to src/common/apis/user/index.ts index 53a5797..ba086d1 100644 --- a/src/http/apis/user/index.ts +++ b/src/common/apis/user/index.ts @@ -1,5 +1,5 @@ import type * as Login from "./type" -import { request } from "@/http/request" +import { request } from "@/http/axios" /** 获取当前登陆用户详情 */ export function getUserInfoApi() { diff --git a/src/http/apis/user/type.ts b/src/common/apis/user/type.ts similarity index 100% rename from src/http/apis/user/type.ts rename to src/common/apis/user/type.ts diff --git a/src/http/request.ts b/src/http/axios.ts similarity index 100% rename from src/http/request.ts rename to src/http/axios.ts diff --git a/src/pages/demo/element-plus/index.vue b/src/pages/demo/element-plus/index.vue index 9098384..97343de 100644 --- a/src/pages/demo/element-plus/index.vue +++ b/src/pages/demo/element-plus/index.vue @@ -1,7 +1,7 @@