/*
 * @Date: 2021-11-30 15:35:16
 * @LastEditors: JinxuChen
 * @LastEditTime: 2021-12-06 16:07:16
 * @FilePath: \GpsCardAdmin\src\store\getters.js
 * @description:
 */
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  authToken: state => state.user.authToken,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  permission_routes: state => state.permission.routes,
}
export default getters