ssoApi.js
395 Bytes
export default {
/**授权登陆 */
async login (data) {
const { request: { baseURL } } = window.$fetchConfig
let url = `${baseURL}/wechat-build-server/wechat/getUserInfo`
const res = await window.fetch(url, {
method: 'POST',
body: JSON.stringify(data),
headers: {
'Content-Type': 'application/json'
}
})
return await res.json()
},
}