feat:登录接口接入

This commit is contained in:
有来技术
2021-11-26 23:57:59 +08:00
parent 40aeda6bfc
commit d055a11921
10 changed files with 141 additions and 97 deletions

View File

@@ -7,9 +7,10 @@ import request from "@utils/request";
export function login(data: object) {
return request({
url: '/youlai-auth/oauth/token',
method:'post',
params: data,
headers: {
'Authorization': 'Basic bWFsbC1hZG1pbi13ZWI6MTIzNDU2' // 客户端信息加密摘要认证,明文mall-admin-web:123456
'Authorization': 'Basic bWFsbC1hZG1pbi13ZWI6MTIzNDU2' // 客户端信息Base64明文mall-admin-web:123456
}
})
}
@@ -39,7 +40,7 @@ export function logout() {
*/
export function getCaptcha() {
return request({
url: '/captcha',
url: '/captcha?t='+(new Date()).getTime().toString(),
method: 'get'
})
}