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.
37 lines
648 B
37 lines
648 B
import util from '../common/util.js'
|
|
|
|
/*export const getUserInfo = (data = {}) => {
|
|
return util.request(
|
|
'/api/my/userInfo',
|
|
(res) => {
|
|
console.log('用户信息请求成功:', res);
|
|
},
|
|
{data},
|
|
|
|
(err) => {
|
|
console.log('用户信息请求失败:', err);
|
|
}
|
|
);
|
|
};
|
|
*/
|
|
|
|
import {
|
|
http
|
|
} from '../utils/http'
|
|
|
|
|
|
/**
|
|
* 用户信息获取接口
|
|
* @param data
|
|
* @returns {Promise<unknown>}
|
|
*/
|
|
export const getUserInfo = (data) => {
|
|
return http({
|
|
method: 'POST',
|
|
url: '/api/my/userInfo',
|
|
data: data,
|
|
header:{
|
|
token:'014de5283d2930af6481ede591afd087'
|
|
}
|
|
})
|
|
}
|