mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 05:29:29 +08:00
refactor(接口测试): 环境的环境域名末尾不自动添加/
This commit is contained in:
parent
0b6ee308eb
commit
6fffba9976
@ -58,10 +58,11 @@
|
||||
this.httpConfig.domain = decodeURIComponent(url.hostname);
|
||||
|
||||
this.httpConfig.port = url.port;
|
||||
let path = url.pathname === '/' ? '' : url.pathname;
|
||||
if (url.port) {
|
||||
this.httpConfig.socket = this.httpConfig.domain + ':' + url.port + url.pathname;
|
||||
this.httpConfig.socket = this.httpConfig.domain + ':' + url.port + path;
|
||||
} else {
|
||||
this.httpConfig.socket = this.httpConfig.domain + url.pathname;
|
||||
this.httpConfig.socket = this.httpConfig.domain + path;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user