From 1eb1522eb39f58603155302f072e2ead3045d2ef Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期二, 25 十一月 2025 09:57:49 +0800
Subject: [PATCH] 修改信息
---
ruoyi-ui/src/api/login.js | 33 ++++++++++++++++++++++++++++++---
1 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js
index 649f59c..888805c 100644
--- a/ruoyi-ui/src/api/login.js
+++ b/ruoyi-ui/src/api/login.js
@@ -1,13 +1,37 @@
import request from '@/utils/request'
+
+
+// 鑾峰彇楠岃瘉鐮�
+export function getEmailCode(data) {
+ return request({
+ url: '/getCode',
+ // headers: {
+ // 'Content-Type': 'application/',
+ // },
+ method: 'post',
+ data: data
+ })
+}
+// 閲嶇疆瀵嗙爜
+export function resetPassword(data) {
+ return request({
+ url: '/reset',
+ method: 'post',
+ data: data
+ })
+}
// 鐧诲綍鏂规硶
-export function login(username, password, code, uuid) {
+export function login(nickname, password, code, uuid) {
+ //alert(nickname)
const data = {
- username,
+ nickname,
password,
code,
uuid
}
+
+
return request({
url: '/login',
headers: {
@@ -20,6 +44,8 @@
// 娉ㄥ唽鏂规硶
export function register(data) {
+ // console.log(data)
+ // console.log("]]]]]]]]]]]]]]]]")
return request({
url: '/register',
headers: {
@@ -48,6 +74,7 @@
// 鑾峰彇楠岃瘉鐮�
export function getCodeImg() {
+
return request({
url: '/captchaImage',
headers: {
@@ -56,4 +83,4 @@
method: 'get',
timeout: 20000
})
-}
\ No newline at end of file
+}
--
Gitblit v1.9.1