xnzt/xnzt-h5/store/getters.js

9 lines
234 B
JavaScript
Raw Permalink Normal View History

2024-11-11 10:27:27 +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
}
export default getters