fix: 导入Har文件路径跟参数重复、请求头无法更新的问题修复
导入Har文件路径跟参数重复、请求头无法更新的问题修复
This commit is contained in:
parent
725c30246d
commit
4318d56a83
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue