From 8bd514fa2913d318b8f2b1fd38df0fa13e35f320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Thu, 9 Nov 2023 18:32:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E5=92=8C=E7=99=BB=E5=87=BA?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E4=BC=9A=E8=AF=9D=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 4486879b3beb4d26b7a41cffd4e0b4b022e1943d --- src/api/user/index.ts | 2 +- src/layout/index.vue | 3 +-- src/permission.ts | 4 ++-- src/store/modules/user.ts | 27 +++++++++++++++------------ src/utils/request.ts | 6 ++++-- 5 files changed, 23 insertions(+), 19 deletions(-) diff --git a/src/api/user/index.ts b/src/api/user/index.ts index d6d8141..3c7087a 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -5,7 +5,7 @@ import { UserForm, UserInfo, UserPageVO, UserQuery } from "./types"; /** * 登录成功后获取用户信息(昵称、头像、权限集合和角色集合) */ -export function getUserInfo(): AxiosPromise { +export function getUserInfoApi(): AxiosPromise { return request({ url: "/api/v1/users/me", method: "get", diff --git a/src/layout/index.vue b/src/layout/index.vue index dccd012..975edf3 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -88,8 +88,6 @@ function toggleSideBar() {