20 lines
536 B
JavaScript
20 lines
536 B
JavaScript
|
|
/*
|
||
|
|
* @Descripttion:
|
||
|
|
* @Author: lip
|
||
|
|
* @Date: 2023-07-27 15:59:34
|
||
|
|
* @LastEditors: lip
|
||
|
|
*/
|
||
|
|
const getters = {
|
||
|
|
token: state => state.user.token,
|
||
|
|
avatar: state => state.user.avatar,
|
||
|
|
name: state => state.user.name,
|
||
|
|
roles: state => state.user.roles,
|
||
|
|
permissions: state => state.user.permissions,
|
||
|
|
userId: state => state.user.userId,
|
||
|
|
handlerData: state => state.user.handlerData,
|
||
|
|
nick: state => state.user.nick,
|
||
|
|
showExitPopup: state => state.user.showExitPopup,
|
||
|
|
publicKey: state => state.user.publicKey
|
||
|
|
}
|
||
|
|
export default getters
|