fe-drone-ci/src/store/getters.js

16 lines
549 B
JavaScript
Raw Normal View History

2017-04-18 07:09:13 +00:00
const getters = {
sidebar: state => state.app.sidebar,
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,
roles: state => state.user.roles,
permission_routes: state => state.permission.routes,
errorLogs: state => state.errorLog.logs
2017-08-22 07:43:34 +00:00
}
2017-04-18 07:09:13 +00:00
export default getters