From ae43ffb94f38b82827223a856d6e3b488db9f28d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Fri, 17 Jun 2022 22:44:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../header/components/UserAvatar.vue | 2 - src/router/guard/permission-guard.js | 24 +++--- src/store/modules/user.js | 7 +- src/utils/auth.js | 8 ++ src/utils/http/interceptors.js | 81 +++++++++---------- src/utils/token.js | 16 ++-- 6 files changed, 67 insertions(+), 71 deletions(-) create mode 100644 src/utils/auth.js diff --git a/src/layout/components/header/components/UserAvatar.vue b/src/layout/components/header/components/UserAvatar.vue index 7436332..50a7379 100644 --- a/src/layout/components/header/components/UserAvatar.vue +++ b/src/layout/components/header/components/UserAvatar.vue @@ -8,7 +8,6 @@