yh-uniapp/store/getters.js
2024-12-06 14:01:20 +08:00

11 lines
333 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,
barHeight: state => state.env.barHeight,
statusBarHeight: state => state.env.statusBarHeight,
}
export default getters