const getters = {
  appStatus: state => state.app.appStatus,
  sidebar: state => state.app.sidebar,
  language: state => state.app.language,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  menuList: state => state.user.menuList,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  permissionRouters: state => state.permission.routers,
  addRouters: state => state.permission.addRouters,
  payChannelOptions: state => {
    let payChannels = state.app.payChannelOptions

    const union = (a, b) => Array.from(new Set([...a, ...b]))

    return union([
      // '银行卡',
      // '银联钱包',
      // '银联扫码',
      // '银联二维码',
      // '支付宝',
      // '微信'
    ], payChannels)
  }
}
export default getters
