From eec0fd43a35b1c4006ef63ce1ec040f201a1b067 Mon Sep 17 00:00:00 2001 From: scmiot Date: Tue, 21 Mar 2023 10:24:09 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E8=8E=B7=E5=8F=96=E6=8E=A5=E5=8F=A3=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=EF=BC=8C=E6=BA=90=E5=9C=B0=E5=9D=80=E4=B8=BA=E7=9F=AD?= =?UTF-8?q?=E4=BF=A1=E9=AA=8C=E8=AF=81=E7=A0=81=E6=8E=A5=E5=8F=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: scmiot --- src/api/login.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/api/login.js b/src/api/login.js index 79a6c19..8c36ba7 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -49,6 +49,18 @@ export function logout() { // 获取验证码 export function getCodeImg() { + return request({ + url: '/code', + headers: { + isToken: false + }, + method: 'get', + timeout: 20000 + }) +} + +// 短信验证码 +export function getCodeSms() { return request({ url: '/sms/code', headers: {