login.js 625 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import request from '@/utils/request'
  2. export function login(data = {}) {
  3. return request({
  4. 'url': '/common/app/login',
  5. headers: {
  6. isToken: false
  7. },
  8. isLoading: true,
  9. method: 'post',
  10. data,
  11. timeout: 20000
  12. })
  13. }
  14. export function getConfig(data = {}) {
  15. return request({
  16. 'url': '/common/app/config',
  17. headers: {
  18. isToken: false
  19. },
  20. method: 'post',
  21. data,
  22. timeout: 20000
  23. })
  24. }
  25. export function getVersion(data = {}) {
  26. return request({
  27. 'url': '/common/app/version',
  28. headers: {
  29. isToken: false
  30. },
  31. method: 'post',
  32. data,
  33. timeout: 20000
  34. })
  35. }