2017-04-18 07:09:13 +00:00
|
|
|
const getters = {
|
|
|
|
sidebar: state => state.app.sidebar,
|
2018-08-29 07:24:47 +00:00
|
|
|
size: state => state.app.size,
|
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,
|
|
|
|
roles: state => state.user.roles,
|
2019-03-15 10:08:12 +00:00
|
|
|
permission_routes: state => state.permission.routes,
|
2017-12-13 05:52:14 +00:00
|
|
|
errorLogs: state => state.errorLog.logs
|
2017-08-22 07:43:34 +00:00
|
|
|
}
|
2017-04-18 07:09:13 +00:00
|
|
|
export default getters
|