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 |   19 ++++---------------
 1 files changed, 4 insertions(+), 15 deletions(-)

diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js
index 06c8b1b..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
@@ -50,7 +51,7 @@
 
 // 鑾峰彇楠岃瘉鐮�
 export function getCodeImg() {
-  console.log("-----")
+
   return request({
     url: '/captchaImage',
     headers: {
@@ -60,15 +61,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