态势感知平台-账号密码登录及验证码接口对接治理平台登录接口

This commit is contained in:
fmk1023
2026-01-05 09:58:49 +08:00
parent 4d9c8ed52c
commit 907a26cc94
4 changed files with 29 additions and 6 deletions

View File

@@ -1,8 +1,22 @@
import request from '@/utils/request';
import axios from 'axios';
export const getCaptcha = (account: any, password: any) => {
return request({
url: `/u-auth/index/getCaptcha`,
// export const getCaptcha = (account: any, password: any) => {
// return request({
// url: `/u-auth/index/getCaptcha`,
// method: 'POST',
// data: {
// account,
// password,
// loginCode: 'admin'
// },
// responseType: 'blob'
// });
// };
export function getCaptcha(account: any, password: any) {
return axios.request({
url: `/gateway/u-auth/index/getCaptcha`,
method: 'POST',
data: {
account,
@@ -11,7 +25,8 @@ export const getCaptcha = (account: any, password: any) => {
},
responseType: 'blob'
});
};
}
export const login = (account: any, code: any, password: any) => {
return request({
url: `/u-auth/index/login`,