From 1a5c9d89d7a1347046692ce5086a1391027c8593 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 08 Aug 2024 09:59:42 +0800
Subject: [PATCH] 代码优化
---
src/api/user.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/api/user.js b/src/api/user.js
index 0b31017..297ccf4 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -8,18 +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,
// 查全部-暂定
- loginType:1
+ loginType: 1
}
});
@@ -114,4 +114,4 @@
url: '/api/blade-auth/oauth/clear-cache',
method: 'get',
authorization: false
-});
+});
\ No newline at end of file
--
Gitblit v1.9.3