From 5e2aafeede13d337380f736567caf74f49713be7 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:38:32 +0800
Subject: [PATCH] 代码优化
---
src/api/user.js | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/api/user.js b/src/api/user.js
index f51bd4d..297ccf4 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -8,16 +8,18 @@
'Tenant-Id': tenantId,
'Dept-Id': (website.switchMode ? deptId : ''),
'Role-Id': (website.switchMode ? roleId : ''),
- // 'Captcha-Key': key,
- // 'Captcha-Code': code,
+ 'Captcha-Key': key,
+ 'Captcha-Code': code,
},
params: {
tenantId,
username,
password,
- grant_type:"password",
+ grant_type: "captcha",
scope: "all",
- type
+ type,
+ // 查全部-暂定
+ loginType: 1
}
});
@@ -112,4 +114,4 @@
url: '/api/blade-auth/oauth/clear-cache',
method: 'get',
authorization: false
-});
+});
\ No newline at end of file
--
Gitblit v1.9.3