jinjianback1.1/src/store/getters.js

11 lines
335 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
};
export default getters