From 65ed34b002810ae406f1e17810af4638ae7e55b0 Mon Sep 17 00:00:00 2001 From: zhangxiao <898441624@qq.com> Date: 星期二, 27 八月 2024 14:23:38 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/flow_web --- src/store/modules/user/index.ts | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/store/modules/user/index.ts b/src/store/modules/user/index.ts index 4c508a2..56d90b8 100644 --- a/src/store/modules/user/index.ts +++ b/src/store/modules/user/index.ts @@ -71,11 +71,14 @@ const res = await userLogin(loginForm); setToken(res.data.access_token); + const userInfo = { avatar: res.data.avatar, - name: res.data.nickname, + name: res.data.userName, email: res.data.email, + role: res.data.roles[0].roleKey, }; + this.name=res.data.userName if(res.data?.roles.length>0) this.resources=res.data.roles[0].resources; -- Gitblit v1.8.0