You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
648 B

  1. import util from '../common/util.js'
  2. /*export const getUserInfo = (data = {}) => {
  3. return util.request(
  4. '/api/my/userInfo',
  5. (res) => {
  6. console.log('用户信息请求成功:', res);
  7. },
  8. {data},
  9. (err) => {
  10. console.log('用户信息请求失败:', err);
  11. }
  12. );
  13. };
  14. */
  15. import {
  16. http
  17. } from '../utils/http'
  18. /**
  19. * 用户信息获取接口
  20. * @param data
  21. * @returns {Promise<unknown>}
  22. */
  23. export const getUserInfo = (data) => {
  24. return http({
  25. method: 'POST',
  26. url: '/api/my/userInfo',
  27. data: data,
  28. header:{
  29. token:'014de5283d2930af6481ede591afd087'
  30. }
  31. })
  32. }