mirror of
https://github.com/certd/certd.git
synced 2026-04-15 04:54:29 +08:00
perf: 优化流水线页面切换回来不丢失查询条件
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user