index.js 370 B

1234567891011
  1. import { arrayToObj } from '@/utils/utils'
  2. import i18n from '@/locales'
  3. export const ROBOT_TYPES = [
  4. { key: 'dingtalk', label: i18n.t('system.text_303') },
  5. { key: 'feishu', label: i18n.t('system.text_304') },
  6. { key: 'workwx', label: i18n.t('system.wecom.bot') },
  7. { key: 'webhook', label: 'Webhook' },
  8. ]
  9. export const ROBOT_TYPE = arrayToObj(ROBOT_TYPES, 'key')