getters.js 629 Bytes
const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  flag: state => state.app.splitScreen,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  permission_routes: state => state.permission.routes,
  addRoutes: state => state.permission.addRoutes,
  // business
  rules: state => state.business.rules,
  dictData: state => state.dict.dictData,
  Edit: state => state.business.Edit,
  businessInfo: state => state.dictionaries.businessInfo
}
export default getters