From e15df9a20c29044b10772e3587a00d0be03b281d Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期日, 08 十二月 2024 20:57:41 +0800
Subject: [PATCH] 增加了内容
---
ruoyi-ui/src/api/login.js | 21 ++++++---------------
1 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js
index 06c8b1b..ce50a53 100644
--- a/ruoyi-ui/src/api/login.js
+++ b/ruoyi-ui/src/api/login.js
@@ -1,9 +1,10 @@
import request from '@/utils/request'
// 鐧诲綍鏂规硶
-export function login(username, password, code, uuid) {
+export function login(nickname, password, code, uuid) {
+ //alert(nickname)
const data = {
- username,
+ nickname,
password,
code,
uuid
@@ -22,6 +23,8 @@
// 娉ㄥ唽鏂规硶
export function register(data) {
+ // console.log(data)
+ // console.log("]]]]]]]]]]]]]]]]")
return request({
url: '/register',
headers: {
@@ -50,7 +53,7 @@
// 鑾峰彇楠岃瘉鐮�
export function getCodeImg() {
- console.log("-----")
+
return request({
url: '/captchaImage',
headers: {
@@ -60,15 +63,3 @@
timeout: 20000
})
}
-
-// 鑾峰彇楠岃瘉鐮�
-export function getCodeImg() {
- return request({
- url: '/captchaImage',
- headers: {
- isToken: false
- },
- method: 'get',
- timeout: 20000
- })
-}
\ No newline at end of file
--
Gitblit v1.9.1