1.
store —>modules—>user.js下 可以查看有哪些信息
2. 使用方式
2.1
//获取登录用户的信息
import user from ‘@/store/modules/user’
2.2
export下
export default {
user
}
2.3
可以在created中直接打印信息
const user=user.state;
console.log(“当前登录人:”,user.info.username);
2.4 只打印到user.info下,可以查看
{
“id”: “2014-04-05”,
“username”: “admin”,
“realname”: “管理员”,
“avatar”: “https://static.jeecg.com/temp/国炬软件logo_1606575029126.png”,
“birthday”: “2018-12-05”,
“sex”: 1,
“email”: “jeecg@163.com”,
“phone”: “11”,
“orgCode”: “11”,
“loginTenantId”: 11,
“orgCodeTxt”: null,
“status”: 1,
“delFlag”: 0,
“workNo”: “00001”,
“post”: null,
“telephone”: null,
“createBy”: null,
“createTime”: “2019-06-21 17:54:10”,
“updateBy”: “admin”,
“updateTime”: “2023-12-31 16:54:41”,
“activitiSync”: 1,
“userIdentity”: 2,
“departIds”: “”,
“relTenantIds”: null,
“clientId”: null,
“homePath”: null,
“postText”: null,
“bpmStatus”: null,
“izBindThird”: false
}