From 51a558d690e6092a9e48801a6f83e50e3d6b7ce3 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期四, 16 三月 2023 18:11:00 +0800
Subject: [PATCH] fix 修复 代码生成 点选按钮不生效问题

---
 ruoyi-ui/src/api/login.js |   46 ++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 38 insertions(+), 8 deletions(-)

diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js
index a10fbe6..9e878cb 100644
--- a/ruoyi-ui/src/api/login.js
+++ b/ruoyi-ui/src/api/login.js
@@ -1,15 +1,19 @@
 import request from '@/utils/request'
 
 // 鐧诲綍鏂规硶
-export function login(username, password, code, uuid) {
+export function login(tenantId, username, password, code, uuid) {
   const data = {
+    tenantId,
     username,
     password,
     code,
     uuid
   }
   return request({
-    url: '/login',
+    url: '/auth/login',
+    headers: {
+      isToken: false
+    },
     method: 'post',
     data: data
   })
@@ -18,7 +22,7 @@
 // 娉ㄥ唽鏂规硶
 export function register(data) {
   return request({
-    url: '/register',
+    url: '/auth/register',
     headers: {
       isToken: false
     },
@@ -30,7 +34,7 @@
 // 鑾峰彇鐢ㄦ埛璇︾粏淇℃伅
 export function getInfo() {
   return request({
-    url: '/getInfo',
+    url: '/system/user/getInfo',
     method: 'get'
   })
 }
@@ -38,7 +42,7 @@
 // 閫�鍑烘柟娉�
 export function logout() {
   return request({
-    url: '/logout',
+    url: '/auth/logout',
     method: 'post'
   })
 }
@@ -46,8 +50,34 @@
 // 鑾峰彇楠岃瘉鐮�
 export function getCodeImg() {
   return request({
-    url: '/captchaImage',
+    url: '/code',
+    headers: {
+      isToken: false
+    },
     method: 'get',
-	timeout: 20000
+    timeout: 20000
   })
-}
\ No newline at end of file
+}
+
+// 鐭俊楠岃瘉鐮�
+export function getCodeSms() {
+  return request({
+    url: '/sms/code',
+    headers: {
+      isToken: false
+    },
+    method: 'get',
+    timeout: 20000
+  })
+}
+
+// 鑾峰彇绉熸埛鍒楄〃
+export function tenantList() {
+  return request({
+    url: '/auth/tenant/list',
+    headers: {
+      isToken: false
+    },
+    method: 'get'
+  })
+}

--
Gitblit v1.9.3