26 lines
831 B
JavaScript
26 lines
831 B
JavaScript
/*
|
|
* @Date: 2020-12-14 09:07:03
|
|
* @LastEditors: gtz
|
|
* @LastEditTime: 2021-01-29 14:24:20
|
|
* @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,
|
|
menus: state => state.user.menus,
|
|
permission_routes: state => state.permission.routes
|
|
}
|
|
export default getters
|