From b19ddbfad72ec7b6d8c5097626dc3d02e18dafa9 Mon Sep 17 00:00:00 2001 From: Huang <596417202@qq.com> Date: Tue, 7 Jun 2022 17:24:25 +0800 Subject: [PATCH] wip-request --- src/pages/index/index.vue | 30 ++++++++-- src/pages/login/index.vue | 12 ++-- src/utils/http/index.ts | 26 ++++++++ src/utils/http/request.ts | 93 +++++++++++++++++++++++++++++ src/utils/http/request/index.ts | 69 --------------------- src/utils/http/request/request.d.ts | 1 - src/utils/interceptors/index.ts | 6 +- src/utils/types/request.d.ts | 20 +++++++ vite.config.ts | 2 +- 9 files changed, 173 insertions(+), 86 deletions(-) create mode 100644 src/utils/http/index.ts create mode 100644 src/utils/http/request.ts delete mode 100644 src/utils/http/request/index.ts delete mode 100644 src/utils/http/request/request.d.ts create mode 100644 src/utils/types/request.d.ts diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 1befb45..69be974 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -13,7 +13,7 @@ diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index f03f864..ad9e7cc 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -17,18 +17,18 @@