From 1bf6169fc82037478eae4ad9557bef98fedc896e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98=E2=80=98?= Date: Thu, 23 Mar 2023 17:23:42 +0800 Subject: [PATCH] =?UTF-8?q?feature-hub-1.0:=E6=96=B0=E5=A2=9E=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/auth.js | 9 +++++++++ pages/login/login.vue | 40 ++++++++++++++++++++++++++++++++++++++-- 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/api/auth.js b/api/auth.js index fb2532d..4b82715 100644 --- a/api/auth.js +++ b/api/auth.js @@ -20,4 +20,13 @@ export function logout(data) { method: 'post', data }) +} + +// 获取验证码 +export function getCodeImg() { + return request({ + url: '/code', + method: 'get', + timeout: 20000 + }) } \ No newline at end of file diff --git a/pages/login/login.vue b/pages/login/login.vue index a44e03a..bb51828 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -31,6 +31,20 @@ + + + + + + +
@@ -42,7 +56,7 @@