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,
|
2018-05-02 06:43:20 +00:00
|
|
|
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,
|
2017-12-13 05:52:14 +00:00
|
|
|
addRouters: state => state.permission.addRouters,
|
|
|
|
errorLogs: state => state.errorLog.logs
|
2017-08-22 07:43:34 +00:00
|
|
|
}
|
2017-04-18 07:09:13 +00:00
|
|
|
export default getters
|