修复搜索

This commit is contained in:
kilo5hz 2022-01-07 21:49:02 +08:00
parent 928f1ce1ee
commit 6225d06442

View File

@ -158,7 +158,7 @@ export default class CronService {
function createRegexp(text:string) {
return {
[Op.or]: [
{ [Op.like]: `%${searchText}&` },
{ [Op.like]: `%${text}%` },
{ [Op.like]: `%${encodeURIComponent(text)}%` },
],
};