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.

46 lines
642 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 { http } from '../utils/http'
  16. /**
  17. * 用户信息获取接口
  18. * @param data
  19. * @returns {Promise<unknown>}
  20. */
  21. export const getUserInfo = (data) => {
  22. return http({
  23. method: 'POST',
  24. url: '/api/my/userInfo',
  25. data:
  26. data
  27. ,
  28. })
  29. }