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 @@