pnkx-admin-mongo/pnkx-uniapp/store/getters.js

10 lines
284 B
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
const getters = {
token: state => state.user.token,
avatar: state => state.user.avatar,
userId: state => state.user.userId,
name: state => state.user.name,
roles: state => state.user.roles,
permissions: state => state.user.permissions
}
export default getters