jsy-app-static/store/getters.js

10 lines
309 B
JavaScript
Raw Normal View History

2024-09-29 11:05:04 +08:00
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,
company: state => state.user.company,
userId: state => state.user.user.userId
}
export default getters