修复列表查询字符转码

This commit is contained in:
whyour
2023-06-04 22:11:48 +08:00
parent 26c914d1db
commit f64ff83414
5 changed files with 26 additions and 37 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ export default class EnvService {
public async envs(searchText: string = '', query: any = {}): Promise<Env[]> {
let condition = { ...query };
if (searchText) {
const encodeText = encodeURIComponent(searchText);
const encodeText = encodeURI(searchText);
const reg = {
[Op.or]: [
{ [Op.like]: `%${searchText}%` },