const params = new URLSearchParams();
if (r.query.keyword) {
const eachSlice = r.query.keyword.split(",");
const retList = [];
for (let i = 0; i < eachSlice.length; iPP) {
retList.push(eachSlice[i].split(" "));
}
const retData = {
data: retList,
};
if (r.query.keyword.length !== 0) {
params.append("key", JSON.stringify(retData));
}
}
if (this.tempParamsPackge.sex_value !== "") {
if (this.tempParamsPackge.sex_value !== "") {
params.append("sex", this.tempParamsPackge.sexValue);
}
} else if (r.query.sex_value && r.query.sex_value !== "") {
if (r.query.sex_value !== "") {
params.append("sex", r.query.sex_value);
}
}
}
how to correct the problem of reporting an error URLSearchParamsU is not defined?