mt-ck-wms-ui/src/store/getters.js
2021-12-22 16:13:55 +08:00

25 lines
795 B
JavaScript

/*
* @Date: 2020-12-14 09:07:03
* @LastEditors: zwq
* @LastEditTime: 2021-12-22 11:38:46
* @FilePath: \basic-admin\src\store\getters.js
* @Description:
*/
const getters = {
sidebar: state => state.app.sidebar,
language: state => state.app.language,
size: state => state.app.size,
device: state => state.app.device,
choicepart: state => state.app.choicepart,
visitedViews: state => state.tagsView.visitedViews,
cachedViews: state => state.tagsView.cachedViews,
token: state => state.user.token,
avatar: state => state.user.avatar,
name: state => state.user.name,
introduction: state => state.user.introduction,
username: state => state.user.username,
roles: state => state.user.roles,
permission_routes: state => state.permission.routes
}
export default getters