- 后台
LoginUser sysUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();
- 前台
// 引入store import store from '@/store' // 使用store let usercode = store.getters.userInfo.username
LoginUser sysUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();
// 引入store import store from '@/store' // 使用store let usercode = store.getters.userInfo.username