登录接口加密传输登录信息
This commit is contained in:
@@ -6,7 +6,7 @@ import type { Dict } from '@/api/interface'
|
||||
* @name 登录模块
|
||||
*/
|
||||
// 用户登录
|
||||
export const loginApi = (params: Login.ReqLoginForm) => {
|
||||
export const loginApi = (params: { username: string; password: string }) => {
|
||||
return http.post<Login.ResLogin>(`${rePrefix}/login`, params, { loading: false })
|
||||
// return http.post<Login.ResLogin>(`/Register1`, params, { loading: false })
|
||||
}
|
||||
@@ -43,3 +43,9 @@ export const getCurrentScene = () => {
|
||||
return http.get('/sysTestConfig/getCurrentScene', {}, { loading: false })
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取RSA公钥
|
||||
*/
|
||||
export const getPublicKey = () => {
|
||||
return http.get('/admin/getPublicKey', {}, { loading: false })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user