This commit is contained in:
caozehui
2025-04-14 14:43:29 +08:00
parent ecec9adeea
commit 30b219e14d
7 changed files with 33 additions and 36 deletions

View File

@@ -7,7 +7,7 @@ import type {Dict} from '@/api/interface'
* @name 登录模块
*/
// 用户登录
export const loginApi = (params: { username: string; password: string,checked: boolean }) => {
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 })
}
@@ -47,8 +47,8 @@ export const getCurrentScene = () => {
/**
* 获取RSA公钥
*/
export const getPublicKey = (username: string, checked: boolean) => {
return http.get(`/admin/getPublicKey?username=${username}&checked=${checked}`, {}, {loading: false})
export const getPublicKey = (username: string) => {
return http.get(`/admin/getPublicKey?username=${username}`, {}, {loading: false})
}
/**