From e81c0197dfd5d6f0ee14ccd11567a1ae92cb1099 Mon Sep 17 00:00:00 2001 From: chansee97 Date: Fri, 29 Mar 2024 13:28:30 +0800 Subject: [PATCH] fix: modify request format --- src/layouts/BasicLayout/index.vue | 2 - src/layouts/components/index.ts | 2 - .../components/{header => tab}/Reload.vue | 0 src/layouts/components/tab/TabBar.vue | 6 ++- src/service/http/alova.ts | 6 +-- src/service/http/config.ts | 2 +- src/service/http/handle.ts | 40 ++++++++++--------- src/service/http/index.ts | 4 +- src/service/http/utils.ts | 10 ----- src/typings/service.d.ts | 25 ++---------- src/views/login/components/Login/index.vue | 2 +- src/views/plugin/fetch/index.vue | 7 ++-- 12 files changed, 40 insertions(+), 66 deletions(-) rename src/layouts/components/{header => tab}/Reload.vue (100%) delete mode 100644 src/service/http/utils.ts diff --git a/src/layouts/BasicLayout/index.vue b/src/layouts/BasicLayout/index.vue index 6bc6038..45dc613 100644 --- a/src/layouts/BasicLayout/index.vue +++ b/src/layouts/BasicLayout/index.vue @@ -7,7 +7,6 @@ import { Logo, Menu, Notices, - Reload, Search, Setting, TabBar, @@ -52,7 +51,6 @@ const appStore = useAppStore()
- diff --git a/src/layouts/components/index.ts b/src/layouts/components/index.ts index 6fe061a..0842961 100644 --- a/src/layouts/components/index.ts +++ b/src/layouts/components/index.ts @@ -10,7 +10,6 @@ import Setting from './header/Setting.vue' import Notices from './header/Notices.vue' import UserCenter from './header/UserCenter.vue' import Search from './header/Search.vue' -import Reload from './header/Reload.vue' /* 标签栏组件 */ import TabBar from './tab/TabBar.vue' @@ -29,7 +28,6 @@ export { Notices, UserCenter, Search, - Reload, TabBar, BackTop, } diff --git a/src/layouts/components/header/Reload.vue b/src/layouts/components/tab/Reload.vue similarity index 100% rename from src/layouts/components/header/Reload.vue rename to src/layouts/components/tab/Reload.vue diff --git a/src/layouts/components/tab/TabBar.vue b/src/layouts/components/tab/TabBar.vue index 9c8ef8d..b5f96de 100644 --- a/src/layouts/components/tab/TabBar.vue +++ b/src/layouts/components/tab/TabBar.vue @@ -1,5 +1,6 @@