From d0cfcead4ad1490b0ac56861f933a4b0f7c21e5c Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Wed, 27 Nov 2024 17:06:50 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=20apis=20=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=89=A5=E7=A6=BB=E5=88=B0=20common=20=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/{http => common}/apis/table/index.ts | 2 +- src/{http => common}/apis/table/type.ts | 0 src/{http => common}/apis/user/index.ts | 2 +- src/{http => common}/apis/user/type.ts | 0 src/http/{request.ts => axios.ts} | 0 src/pages/demo/element-plus/index.vue | 4 ++-- src/pages/demo/vxe-table/index.vue | 4 ++-- src/pages/login/apis/index.ts | 2 +- src/pinia/stores/user.ts | 2 +- 9 files changed, 8 insertions(+), 8 deletions(-) rename src/{http => common}/apis/table/index.ts (94%) rename src/{http => common}/apis/table/type.ts (100%) rename src/{http => common}/apis/user/index.ts (83%) rename src/{http => common}/apis/user/type.ts (100%) rename src/http/{request.ts => axios.ts} (100%) 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 @@