perf: 优化流水线页面切换回来不丢失查询条件

This commit is contained in:
xiaojunnuo
2024-11-08 10:51:41 +08:00
parent 028758c4e0
commit 4dcf6e87bc
5 changed files with 21 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ export class PipelineController extends CrudController<PipelineService> {
const buildQuery = qb => {
if (title) {
qb.andWhere('title like :title', { title: `%${title}%` });
qb.andWhere('title like :title', { title: `%${title}%` }).orWhere('content like :content', { content: `%${title}%` });
}
};
if (!body.sort || !body.sort?.prop) {