From 571a25d4865e8865cf1e80f3ba86cc4cbebe8d03 Mon Sep 17 00:00:00 2001
From: gowshwah <145280043+nodjoy@users.noreply.github.com>
Date: Thu, 12 Mar 2026 16:42:31 +0800
Subject: [PATCH] update docker image version for master branch

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

diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js
index 4e9da7f..50d8623 100644
--- a/ruoyi-ui/src/api/login.js
+++ b/ruoyi-ui/src/api/login.js
@@ -4,8 +4,24 @@
 export function login(username, password, code, uuid) {
   return request({
     url: '/auth/login',
+    headers: {
+      isToken: false,
+      repeatSubmit: 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 +53,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