17 lines
578 B
JavaScript
17 lines
578 B
JavaScript
const getters = {
|
|
routers: state => state.permission.routes,
|
|
addRouters: state => state.permission.addRouters,
|
|
sidebar: state => state.app.sidebar,
|
|
lessonbar: state => state.app.lessonBar,
|
|
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,
|
|
permission_routes: state => state.permission.routes
|
|
};
|
|
export default getters;
|