========后端
@Autowired
private TokenService tokenService;
LoginUser loginUser = tokenService.getLoginUser();
sysInquiry.setCreateBy(loginUser.getUsername());
sysInquiry.setCreateTime(DateUtils.getNowDate());
==========前端
获取使用
const nickName = this.$store.state.user.nickName