修复搜索环境变量urlencode

This commit is contained in:
whyour
2021-12-05 23:04:26 +08:00
parent 0318f03283
commit dfb159c4ad
12 changed files with 53 additions and 10 deletions
+3 -1
View File
@@ -159,7 +159,9 @@ export default class CronService {
public async crontabs(searchText?: string): Promise<Crontab[]> {
let query = {};
if (searchText) {
const reg = new RegExp(searchText, 'i');
const encodeText = encodeURIComponent(searchText);
const reg = new RegExp(`${searchText}|${encodeText}`, 'i');
query = {
$or: [
{