guigu-oa-admin/src/store/getters.js

10 lines
262 B
JavaScript
Raw Normal View History

2017-06-26 13:38:24 +08:00
const getters = {
sidebar: state => state.app.sidebar,
2018-05-02 17:00:56 +08:00
device: state => state.app.device,
2017-06-26 13:38:24 +08:00
token: state => state.user.token,
avatar: state => state.user.avatar,
name: state => state.user.name,
2017-10-18 15:05:30 +08:00
roles: state => state.user.roles
2017-08-30 17:42:06 +08:00
}
2017-06-26 13:38:24 +08:00
export default getters