fix(接口测试): 修复自定义请求编辑问题
This commit is contained in:
parent
1d6b6c0511
commit
26ae544060
|
@ -69,18 +69,16 @@ export default {
|
||||||
},
|
},
|
||||||
urlChange() {
|
urlChange() {
|
||||||
this.isUrl = false;
|
this.isUrl = false;
|
||||||
if (this.isCustomizeReq) {
|
if (this.request.isRefEnvironment) {
|
||||||
this.request.path = this.request.url;
|
this.pathChange();
|
||||||
}
|
} else {
|
||||||
if (!this.request.url || this.request.url.indexOf('?') === -1) return;
|
if (!this.request.url || this.request.url.indexOf('?') === -1) return;
|
||||||
let url = this.getURL(this.addProtocol(this.request.url));
|
let url = this.getURL(this.addProtocol(this.request.url));
|
||||||
if (url) {
|
if (url) {
|
||||||
let paramUrl = this.request.url.substr(this.request.url.indexOf("?") + 1);
|
let paramUrl = this.request.url.substr(this.request.url.indexOf("?") + 1);
|
||||||
if (paramUrl && this.isUrl) {
|
if (paramUrl && this.isUrl) {
|
||||||
this.request.url = decodeURIComponent(this.request.url.substr(0, this.request.url.indexOf("?")));
|
this.request.url = decodeURIComponent(this.request.url.substr(0, this.request.url.indexOf("?")));
|
||||||
}
|
}
|
||||||
if (this.isCustomizeReq) {
|
|
||||||
this.request.path = this.request.url;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue