17 lines
604 B
JavaScript
17 lines
604 B
JavaScript
const getters = {
|
|
routers: state => state.permission.routes,
|
|
addRouters: state => state.permission.addRouters,
|
|
sidebar: state => state.app.sidebar,
|
|
device: state => state.app.device,
|
|
token: state => state.user.token,
|
|
avatar: state => state.user.avatar,
|
|
name: state => state.user.name,
|
|
nickname: state => state.user.nickname,
|
|
roles: state => state.user.roles,
|
|
canvasWidth: state => state.config.width,
|
|
canvasHeight: state => state.config.height,
|
|
id: state => state.user.id,
|
|
permission_routes: state => state.permission.routes
|
|
};
|
|
export default getters;
|