From a146e6bc18add958edd3117b325d950e16191c67 Mon Sep 17 00:00:00 2001 From: h_mo <596417202@qq.com> Date: Sun, 12 Jun 2022 12:51:52 +0800 Subject: [PATCH] =?UTF-8?q?perf-=E7=99=BB=E5=BD=95/request=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 3 + src/env.d.ts | 2 - src/pages/index/index.vue | 22 ------ src/pages/login/index.vue | 36 +++++----- src/services/api/auth.ts | 31 ++++++++ src/services/api/user.ts | 6 -- .../model/{user.d.ts => authModel.d.ts} | 0 src/services/model/baseModel.d.ts | 2 +- src/services/model/userModel.d.ts | 0 src/settings/encryptionSetting.ts | 6 +- src/state/modules/auth.ts | 70 +++++++++++++++++++ src/state/modules/user.ts | 31 ++------ src/utils/auth.ts | 4 ++ src/utils/env.ts | 18 +++-- src/utils/http/core/Request.ts | 4 +- src/utils/http/index.ts | 12 ++-- src/utils/log.ts | 4 +- 17 files changed, 162 insertions(+), 89 deletions(-) create mode 100644 src/services/api/auth.ts rename src/services/model/{user.d.ts => authModel.d.ts} (100%) create mode 100644 src/services/model/userModel.d.ts create mode 100644 src/state/modules/auth.ts create mode 100644 src/utils/auth.ts diff --git a/src/App.vue b/src/App.vue index f82fe70..91a409f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,13 @@