fix(项目设置): 修复环境配置处引用该变量进行保存时,发现会把变量名的大写变成小写的缺陷

--bug=1024836 --user=王孝刚
【接口测试】github#23079,【环境配置】通用配置处配置含有英文大写变量名,HTTP配置处引用该变量进行保存时,发现会把变量名的大写变成小写
https://www.tapd.cn/55049933/s/1356957
This commit is contained in:
wxg0103 2023-03-29 10:55:33 +08:00 committed by fit2-zhao
parent 5a47d8138c
commit d6c41373ac
2 changed files with 8 additions and 2 deletions

View File

@ -448,7 +448,10 @@ export default {
return true;
}
this.condition.domain = decodeURIComponent(url.hostname);
if (socket.startsWith("${")){
let split = socket.split(":");
this.condition.domain = split[0];
}
this.condition.port = url.port;
let path = url.pathname === "/" ? "" : url.pathname;
if (url.port) {

View File

@ -453,7 +453,10 @@ export default {
return true;
}
this.condition.domain = decodeURIComponent(url.hostname);
if (socket.startsWith("${")){
let split = socket.split(":");
this.condition.domain = split[0];
}
this.condition.port = url.port;
let path = url.pathname === "/" ? "" : url.pathname;
if (url.port) {