From 656c70e1d4aa68745f0ecb237c9d7aa190749edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=BA=A2=E4=B8=BD?= <1181930680@qq.com> Date: Sun, 29 Sep 2024 13:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/api/system/user.ts b/src/api/system/user.ts index 74d1830..3b47fb8 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -46,15 +46,15 @@ export function login2(data) { return http.request( { 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' }, );