2019-12-22 09:37:52 +08:00
|
|
|
const getters = {
|
|
|
|
device: state => state.app.device,
|
|
|
|
theme: state => state.app.theme,
|
|
|
|
color: state => state.app.color,
|
|
|
|
token: state => state.user.token,
|
|
|
|
avatar: state => state.user.avatar,
|
|
|
|
nickname: state => state.user.name,
|
|
|
|
welcome: state => state.user.welcome,
|
|
|
|
roles: state => state.user.roles,
|
|
|
|
userInfo: state => state.user.info,
|
|
|
|
addRouters: state => state.permission.addRouters,
|
2019-12-28 21:20:27 +08:00
|
|
|
routers: state => state.permission.routers,
|
2019-12-22 09:37:52 +08:00
|
|
|
multiTab: state => state.app.multiTab,
|
|
|
|
lang: state => state.i18n.lang
|
|
|
|
}
|
|
|
|
|
|
|
|
export default getters
|