2017-04-18 07:09:13 +00:00
|
|
|
const getters = {
|
|
|
|
sidebar: state => state.app.sidebar,
|
2017-06-23 09:32:52 +00:00
|
|
|
visitedViews: state => state.app.visitedViews,
|
2017-10-31 02:49:24 +00:00
|
|
|
cachedViews: state => state.app.cachedViews,
|
2017-04-18 07:09:13 +00:00
|
|
|
token: state => state.user.token,
|
|
|
|
avatar: state => state.user.avatar,
|
|
|
|
name: state => state.user.name,
|
|
|
|
introduction: state => state.user.introduction,
|
|
|
|
status: state => state.user.status,
|
|
|
|
roles: state => state.user.roles,
|
2017-05-17 08:26:33 +00:00
|
|
|
setting: state => state.user.setting,
|
|
|
|
permission_routers: state => state.permission.routers,
|
|
|
|
addRouters: state => state.permission.addRouters
|
2017-08-22 07:43:34 +00:00
|
|
|
}
|
2017-04-18 07:09:13 +00:00
|
|
|
export default getters
|