拓恒河湖长制全民护河平台WEB端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

36 行
529B

  1. const { request } = require("../request/index");
  2. /**
  3. * get
  4. */
  5. export const get = function (url, params, showLoading = true) {
  6. return request({
  7. url: url,
  8. method: "GET",
  9. data: params,
  10. showLoading
  11. })
  12. }
  13. /**
  14. * post
  15. */
  16. export const post = function (url, params, showLoading = true) {
  17. return request({
  18. url: url,
  19. method: "POST",
  20. data: params,
  21. showLoading
  22. })
  23. }
  24. /**
  25. * put
  26. */
  27. export const put = function (url, params) {
  28. return request({
  29. url: url,
  30. method: "PUT",
  31. data: params
  32. })
  33. }