feat: 完成登录日志记录功能

This commit is contained in:
橙子
2023-02-20 21:10:06 +08:00
parent 9645decf59
commit f8445ab2e4
13 changed files with 278 additions and 24 deletions

View File

@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询登录日志列表
export function list(query) {
return request({
url: '/loginLog/pageList',
url: '/login-log',
method: 'get',
params: query
})
@@ -12,9 +12,8 @@ export function list(query) {
// 删除登录日志
export function delLogininfor(infoId) {
return request({
url: '/loginLog/delList',
method: 'delete',
data:"string"==typeof(infoId)?[infoId]:infoId
url: `/login-log/${infoId}`,
method: 'delete'
})
}