fix: 导入Har文件路径跟参数重复、请求头无法更新的问题修复

导入Har文件路径跟参数重复、请求头无法更新的问题修复
This commit is contained in:
song-tianyang 2021-04-28 17:02:16 +08:00 committed by 刘瑞斌
parent 725c30246d
commit 4318d56a83
2 changed files with 9 additions and 1 deletions

View File

@ -86,7 +86,10 @@ public class HarParser extends HarAbstractParser {
}
try {
url = URLDecoder.decode(url,"UTF-8");
url = URLDecoder.decode(url, "UTF-8");
if (url.contains("?")) {
url = url.split("\\?")[0];
}
}catch (Exception e){
}

View File

@ -89,6 +89,11 @@ export default {
let results = queryString ? suggestions.filter(this.createFilter(queryString)) : suggestions;
cb(results);
},
createFilter(queryString) {
return (restaurant) => {
return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
};
},
},
created() {