lanan-old/rescue-user/store/getters.js
愉快的大福 7dc28dc701 init
2024-07-17 14:16:22 +08:00

9 lines
234 B
JavaScript

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