From 596a6831ceb5417e2f4fb71f9e2dd1d2e2bcb6f8 Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期五, 14 十月 2022 10:25:26 +0800 Subject: [PATCH] lct --- src/stores/userInfo.ts | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts index be7e8c0..425b01d 100644 --- a/src/stores/userInfo.ts +++ b/src/stores/userInfo.ts @@ -19,9 +19,10 @@ dataList: [] } }), + persist:true, actions: { async setUserInfos(value: any) { - this.userInfos.userName = value.username; + this.userInfos.userName = value.realName; this.userInfos.uid = value.uid; this.userInfos.roles = value.role; // const userName = Cookies.get('userName'); -- Gitblit v1.9.2