修复搜索环境变量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
@@ -97,7 +97,9 @@ export default class OpenService {
): Promise<App[]> {
let condition = { ...query };
if (searchText) {
const reg = new RegExp(searchText);
const encodeText = encodeURIComponent(searchText);
const reg = new RegExp(`${searchText}|${encodeText}`, 'i');
condition = {
$or: [
{