demo.js 371 B

123456789101112131415161718192021222324
  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 dictionary = (code) => {
  12. return http.request({
  13. url: '/blade-system/dict-biz/dictionary',
  14. method: 'GET',
  15. params: {
  16. code
  17. }
  18. })
  19. }
  20. export default {
  21. captcha,
  22. dictionary
  23. }