Commit e006cc7c authored by shiziyuan9527's avatar shiziyuan9527 Committed by shiziyuan9527
Browse files

fix(系统设置): 环境组中的环境预览,显示的跟环境域名里不一样

--bug=1010325 --user=lyh 【系统设置】环境组中的环境预览,显示的跟环境域名里不一样
https://www.tapd.cn/55049933/s/1105786
parent cf5c5028
Showing with 8 additions and 8 deletions
+8 -8
......@@ -367,8 +367,8 @@ export default {
return "SHOW_INFO";
}
let obj = config.httpConfig.conditions[0];
if (obj.protocol && obj.domain) {
return obj.protocol + "://" + obj.domain;
if (obj.protocol && obj.socket) {
return obj.protocol + "://" + obj.socket;
}
} else if (config.httpConfig.conditions.length > 1) {
return "SHOW_INFO";
......
......@@ -207,8 +207,8 @@ export default {
return;
}
let obj = config.httpConfig.conditions[0];
if (obj.protocol && obj.domain) {
this.$set(item, "domainName", obj.protocol + "://" + obj.domain);
if (obj.protocol && obj.socket) {
this.$set(item, "domainName", obj.protocol + "://" + obj.socket);
this.$set(item, "domainDescription", obj.description ? obj.description : "");
return;
}
......@@ -302,8 +302,8 @@ export default {
return;
}
let obj = config.httpConfig.conditions[0];
if (obj.protocol && obj.domain) {
this.$set(item, "domainName", obj.protocol + "://" + obj.domain);
if (obj.protocol && obj.socket) {
this.$set(item, "domainName", obj.protocol + "://" + obj.socket);
this.$set(item, "domainDescription", obj.description ? obj.description : "");
}
} else if (config.httpConfig.conditions.length > 1) {
......
......@@ -413,8 +413,8 @@ export default {
return "SHOW_INFO";
}
let obj = config.httpConfig.conditions[0];
if (obj.protocol && obj.domain) {
return obj.protocol + "://" + obj.domain;
if (obj.protocol && obj.socket) {
return obj.protocol + "://" + obj.socket;
}
} else if (config.httpConfig.conditions.length > 1) {
return "SHOW_INFO";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment