Bootstrap

若依前后端获取当前用户

========后端

@Autowired
private TokenService tokenService;


LoginUser loginUser = tokenService.getLoginUser();
sysInquiry.setCreateBy(loginUser.getUsername());
sysInquiry.setCreateTime(DateUtils.getNowDate());

==========前端

获取使用

 const nickName = this.$store.state.user.nickName

;