fix(接口测试): 修复自定义请求接口路径没有自动删除空格的缺陷
--bug=1033406 --user=王孝刚 [接口测试]github#27838接口测试-接口定义,当接口路径最后有空格时,不会自动删除,会拼接到接口上 https://www.tapd.cn/55049933/s/1448834
This commit is contained in:
parent
4befeadbcf
commit
e9b6aa9e9e
|
@ -114,6 +114,12 @@ export default {
|
||||||
},
|
},
|
||||||
urlChange() {
|
urlChange() {
|
||||||
this.isUrl = false;
|
this.isUrl = false;
|
||||||
|
if (this.request.path) {
|
||||||
|
this.request.path = this.request.path.trimEnd();
|
||||||
|
}
|
||||||
|
if (this.request.url) {
|
||||||
|
this.request.url = this.request.url.trimEnd();
|
||||||
|
}
|
||||||
if (this.request.isRefEnvironment) {
|
if (this.request.isRefEnvironment) {
|
||||||
this.pathChange();
|
this.pathChange();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue