index.js 560 B

1234567891011121314151617181920212223
  1. import i18n from '@/locales'
  2. export const getNote = (note) => {
  3. let _note = ''
  4. switch (note) {
  5. case 'no such mobile':
  6. _note = i18n.t('system.no_such_mobile')
  7. break
  8. case 'service exceptions':
  9. _note = i18n.t('system.service_exceptions')
  10. break
  11. case 'incomplete config':
  12. _note = i18n.t('system.incomplete_config')
  13. break
  14. case 'mobile changed, re-verify':
  15. _note = i18n.t('system.mobile_changed_re_verify')
  16. break
  17. default:
  18. _note = i18n.t('scope.text_957')
  19. break
  20. }
  21. return _note
  22. }