From b60fa5c920b5eb7cf4a2e3e1cacfe779d2f9ff12 Mon Sep 17 00:00:00 2001
From: 若依 <yzz_ivy@163.com>
Date: Sat, 12 Feb 2022 14:01:41 +0800
Subject: [PATCH] !144 删除方法无返回值时,方法注释上的@return Merge pull request !144 from 我的世界有我/master
---
ruoyi-ui/src/api/login.js | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js
index 4e9da7f..6b0cda0 100644
--- a/ruoyi-ui/src/api/login.js
+++ b/ruoyi-ui/src/api/login.js
@@ -4,8 +4,23 @@
export function login(username, password, code, uuid) {
return request({
url: '/auth/login',
+ headers: {
+ isToken: false
+ },
method: 'post',
data: { username, password, code, uuid }
+ })
+}
+
+// 注册方法
+export function register(data) {
+ return request({
+ url: '/auth/register',
+ headers: {
+ isToken: false
+ },
+ method: 'post',
+ data: data
})
}
@@ -37,6 +52,10 @@
export function getCodeImg() {
return request({
url: '/code',
- method: 'get'
+ headers: {
+ isToken: false
+ },
+ method: 'get',
+ timeout: 20000
})
}
\ No newline at end of file
--
Gitblit v1.9.3