fix(用户管理): 修复用户搜索参数名称不一致问题
- 将前端搜索参数从 username 改为 keyword,与后端 API 保持一致 - 更新 UserPageRequest 接口,添加 keyword 字段 问题原因: - 前端传递 username 参数,但后端期望 keyword 参数 - 导致后端无法正确处理搜索请求,搜索关键字为 null 影响范围: - 用户管理页面的搜索功能 - E2E 测试中的用户搜索步骤
This commit is contained in:
@@ -113,9 +113,13 @@ class CustomReporter implements Reporter {
|
||||
if (stats.failedTests.length > 0) {
|
||||
console.log('❌ 失败的测试:');
|
||||
stats.failedTests.forEach((test, index) => {
|
||||
console.log(` ${index + 1}. ${test.title}`);
|
||||
console.log(` 位置: ${test.location.file}:${test.location.line}`);
|
||||
console.log(` 错误: ${test.error?.message}`);
|
||||
console.log(` ${index + 1}. ${test.title || '未命名测试'}`);
|
||||
if (test.location?.file) {
|
||||
console.log(` 位置: ${test.location.file}:${test.location.line || 0}`);
|
||||
}
|
||||
if (test.error?.message) {
|
||||
console.log(` 错误: ${test.error.message}`);
|
||||
}
|
||||
});
|
||||
console.log('');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user