user.js
364 Bytes
import axios from 'axios';
import servers from '../utils/request';
const getJwt = async loginInfo => {
return axios.post('https://wxapp.jjskj.com.cn/sso/auth', {
...loginInfo,
});
};
const getUser = async jwt => {
return servers('/login/userAuth', {
method: 'GET',
params: {
jwt,
},
});
};
export default {
getJwt,
getUser,
};