fix(接口测试): 快捷调试自动补全协议

--bug=1024667 --user=王孝刚 【接口测试】快捷调试返回的请求地址少了 /,建议优化自动加上
https://www.tapd.cn/55049933/s/1353283
This commit is contained in:
wxg0103 2023-03-20 19:25:03 +08:00 committed by wxg0103
parent 515f27037b
commit fb0229c90a
1 changed files with 3 additions and 0 deletions

View File

@ -268,6 +268,9 @@ export default {
},
urlChange() {
if (!this.debugForm.url) return;
if (!this.debugForm.url.startsWith("http")) {
this.debugForm.url = "http://" + this.debugForm.url;
}
let url = this.getURL(this.debugForm.url);
if (url && url.pathname) {
if (this.debugForm.url.indexOf('?') != -1) {