feat: 添加异常日志功能并优化UI样式

refactor: 重构后端查询逻辑和API响应处理

fix: 修复用户角色更新和文件上传问题

test: 添加前端性能测试脚本和E2E测试用例

chore: 更新依赖版本和配置文件

docs: 添加环境检查脚本和测试文档

style: 统一表格标签样式和路由命名

perf: 优化前端页面加载速度和响应时间
This commit is contained in:
张翔
2026-03-24 13:32:20 +08:00
parent a97d317e4a
commit be5d5ede90
184 changed files with 11231 additions and 1903 deletions
+8 -8
View File
@@ -20,11 +20,11 @@ class TestLoginLog:
data = {
"username": f"testuser_{timestamp}",
"ip": "127.0.0.1",
"loginLocation": "本地",
"location": "本地",
"browser": "Chrome",
"os": "Mac OS",
"status": "0",
"msg": "登录成功"
"message": "登录成功"
}
response = await api.create_login_log(data)
@@ -52,7 +52,7 @@ class TestLoginLog:
"username": f"testuser_{timestamp}",
"ip": "127.0.0.1",
"status": "0",
"msg": "登录成功"
"message": "登录成功"
}
create_response = await api.create_login_log(data)
log_id = create_response.json()["id"]
@@ -127,7 +127,7 @@ class TestExceptionLog:
"username": f"testuser_{i}",
"ip": f"127.0.0.{i}",
"status": "0",
"msg": "登录成功"
"message": "登录成功"
}
await api.create_login_log(data)
@@ -153,7 +153,7 @@ class TestExceptionLog:
"username": f"sortuser_{i}",
"ip": "127.0.0.1",
"status": "0",
"msg": "登录成功"
"message": "登录成功"
}
await api.create_login_log(data)
@@ -174,7 +174,7 @@ class TestExceptionLog:
"username": "search_test_user",
"ip": "127.0.0.1",
"status": "0",
"msg": "登录成功"
"message": "登录成功"
}
await api.create_login_log(data1)
@@ -183,7 +183,7 @@ class TestExceptionLog:
"username": "other_user",
"ip": "127.0.0.2",
"status": "0",
"msg": "登录成功"
"message": "登录成功"
}
await api.create_login_log(data2)
@@ -208,7 +208,7 @@ class TestExceptionLog:
"username": f"count_test_user",
"ip": "127.0.0.1",
"status": "0",
"msg": "登录成功"
"message": "登录成功"
}
await api.create_login_log(data)