jinjianback1.1/src/store/getters.js

11 lines
334 B
JavaScript
Raw Normal View History

2017-06-26 13:38:24 +08:00
const getters = {
sidebar: state => state.app.sidebar,
token: state => state.user.token,
avatar: state => state.user.avatar,
name: state => state.user.name,
roles: state => state.user.roles,
permission_routers: state => state.permission.routers,
addRouters: state => state.permission.addRouters
2017-08-30 17:42:06 +08:00
}
2017-06-26 13:38:24 +08:00
export default getters