修改登录
This commit is contained in:
parent
638232d525
commit
656c70e1d4
@ -46,15 +46,15 @@ export function login2(data) {
|
||||
return http.request<BasicResponseModel>(
|
||||
{
|
||||
url: '/auth/oauth2/token',
|
||||
auth:{
|
||||
...data
|
||||
},
|
||||
// auth:{
|
||||
// username:data.username,
|
||||
// password:data.password
|
||||
// },
|
||||
method: 'POST',
|
||||
data: {
|
||||
...data
|
||||
},
|
||||
data:formData,
|
||||
headers: {
|
||||
"Content-Type": "application/json;charset=UTF-8",
|
||||
// "Content-Type": "application/json;charset=UTF-8",
|
||||
"Content-Type": "multipart/form-data",
|
||||
Authorization: "Basic YWRtaW46MTIzNDU2", // 客户端信息Base64明文:mall-admin:123456
|
||||
},
|
||||
},
|
||||
@ -70,7 +70,7 @@ export function login2(data) {
|
||||
export function getInfoCaptcha() {
|
||||
return http.request(
|
||||
{
|
||||
url: '/captcha',
|
||||
url: '/admin/captcha',
|
||||
method: 'GET'
|
||||
},
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user