fix(接口测试): 修复自定义请求接口路径没有自动删除空格的缺陷

--bug=1033406 --user=王孝刚 [接口测试]github#27838接口测试-接口定义,当接口路径最后有空格时,不会自动删除,会拼接到接口上 https://www.tapd.cn/55049933/s/1448834
This commit is contained in:
wxg0103 2023-12-27 14:43:03 +08:00 committed by 刘瑞斌
parent 4befeadbcf
commit e9b6aa9e9e
1 changed files with 6 additions and 0 deletions

View File

@ -114,6 +114,12 @@ export default {
},
urlChange() {
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) {
this.pathChange();
} else {