提交 4318d56a 编写于 作者: S song-tianyang 提交者: 刘瑞斌

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

导入Har文件路径跟参数重复、请求头无法更新的问题修复
上级 725c3024
......@@ -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){
}
......
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册