From be4c17512fe93511c21939d594c843b9594b1549 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期四, 29 八月 2024 22:51:39 +0800
Subject: [PATCH] 修改成昵称登录了

---
 ruoyi-ui/src/api/login.js |   21 +++++----------------
 1 files changed, 5 insertions(+), 16 deletions(-)

diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js
index e9c7f4b..3363f05 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
@@ -49,20 +50,8 @@
 }
 
 // 鑾峰彇楠岃瘉鐮�
-// export function getCodeImg() {
-//   console.log("-----")
-//   return request({
-//     url: '/captchaImage',
-//     headers: {
-//       isToken: false
-//     },
-//     method: 'get',
-//     timeout: 20000
-//   })
-// }
-
-// 鑾峰彇楠岃瘉鐮�
 export function getCodeImg() {
+
   return request({
     url: '/captchaImage',
     headers: {
@@ -71,4 +60,4 @@
     method: 'get',
     timeout: 20000
   })
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1