demo.js 402 B

12345678910111213141516171819202122232425
  1. import http from '@/http/api.js'
  2. // 获取验证码
  3. const captcha = (data) => {
  4. return http.request({
  5. url: '/blade-auth/oauth/captcha',
  6. method: 'GET',
  7. data
  8. })
  9. }
  10. // 获取业务字典
  11. const getWorkDicts = (dictType) => {
  12. return http.request({
  13. url: '/blade-system/dict-biz/dictionary',
  14. method: 'GET',
  15. params: {
  16. code: dictType
  17. },
  18. })
  19. }
  20. export default {
  21. captcha,
  22. getWorkDicts
  23. }