一、前台
1.首先引入store
import store from '@/store'
2.使用store
let username = store.getters.userInfo.username
二、后台
LoginUser sysUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();
一、前台
1.首先引入store
import store from '@/store'
2.使用store
let username = store.getters.userInfo.username
二、后台
LoginUser sysUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();