admin-fe/src/store/getters.js

23 lines
845 B
JavaScript
Raw Normal View History

2017-04-18 07:09:13 +00:00
const getters = {
sidebar: state => state.app.sidebar,
2017-11-03 10:37:49 +00:00
language: state => state.app.language,
size: state => state.app.size,
device: state => state.app.device,
2017-12-08 08:17:40 +00:00
visitedViews: state => state.tagsView.visitedViews,
cachedViews: state => state.tagsView.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,
2019-02-23 21:40:26 +00:00
errorLogs: state => state.errorLog.logs,
2019-03-23 14:09:48 +00:00
users: state => state.users.fetchedUsers,
authHost: state => state.user.authHost,
settings: state => state.settings
2017-08-22 07:43:34 +00:00
}
2017-04-18 07:09:13 +00:00
export default getters