getters.js 1.04 KB
/*
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2024-02-01 08:53:08
 */
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,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  userInfo: state => state.user.userInfo,
  userData: state => state.user.userData,
  permission_routes: state => state.permission.routes,
  addRoutes: state => state.permission.addRoutes,
  addDict: state => state.dict.addDict,
  dictData: state => state.dict.dictData,
  djbxx: state => state.djbxx.djbxx,
  // workflow
  isRefresh: state => state.user.isRefresh,
  pouopData: state => state.user.pouopData,
  workFresh: state => state.user.workFresh,
  // 左侧菜单刷新
  menuRefresh: state => state.user.menuRefresh,
  yjsqOptions: state => state.workflow.yjsqOptions,
  dqhj: state => state.getdqhj.dqhj
}
export default getters