From 92f030887b45604744d488131a506abbda14b4b5 Mon Sep 17 00:00:00 2001 From: zlyx <1242874891@qq.com> Date: 星期一, 02 五月 2022 21:21:14 +0800 Subject: [PATCH] [add]: 1. (common) pom.xml - 增加邮件依赖 ; 2. (admin) application-dev.yml - 增加邮件配置 ; 3. (framework) MailProperties, MailConfig - 增加邮件属性配置 ; 4. (common) MailUtils - 重写 Hutool MailUtil方法 ; 5. (demo) MailController - 邮件发送测试方法 ; --- ruoyi-ui/src/api/login.js | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js index 1e84761..0327e6f 100644 --- a/ruoyi-ui/src/api/login.js +++ b/ruoyi-ui/src/api/login.js @@ -10,8 +10,23 @@ } return request({ url: '/login', + headers: { + isToken: false + }, method: 'post', - params: data + data: data + }) +} + +// 娉ㄥ唽鏂规硶 +export function register(data) { + return request({ + url: '/register', + headers: { + isToken: false + }, + method: 'post', + data: data }) } @@ -35,6 +50,10 @@ export function getCodeImg() { return request({ url: '/captchaImage', - method: 'get' + headers: { + isToken: false + }, + method: 'get', + timeout: 20000 }) -} \ No newline at end of file +} -- Gitblit v1.9.3