You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.3 KiB

const getters = {
sidebar: state => state.app.sidebar,
language: state => state.app.language,
size: state => state.app.size,
device: state => state.app.device,
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,
roles: state => state.user.roles,
orgid:state=>state.user.orgid,
permission_routes: state => state.permission.routes,
errorLogs: state => state.errorLog.logs,
test: state => state.user.test,
testVueRouters: state => state.permission.testVueRouters,
sys:state=>state.user.sys,
sysRouters:state=>state.permission.sysRouters,
sy:state=>state.user.sy,
first:state=>state.user.first,
firstRouters:state=>state.permission.firstRouters,
logo: state => {
if (state.app.logo) {
return state.app.logo
}
return require('@/assets/img/win-logo-2.png')
},
activeIndex: state => state.app.sidebar.activeIndex,
userInfo: state => state.user.userInfo,
manage: state => state.user.manage,
manageRouters: state => state.permission.manageRouters,
isLoading:state=>state.app.isLoading,
messageNum: state => state.customer.messageNum,
}
export default getters