fix: path bug

This commit is contained in:
CaiHQ
2021-10-26 11:22:45 +08:00
parent a117a53b0b
commit e96048de2a
8 changed files with 2837 additions and 18 deletions

View File

@@ -137,7 +137,7 @@ ${table[i].name}
</tr>`
}
html += tableTail;
html = "<h5 class='card-title'>合约实例列表</h5>" + html;
html = "<h5 class='card-title'>DO实例列表</h5>" + html;
ciTabDiv.html(html);
$("#ciTabDivTab").DataTable(

View File

@@ -274,7 +274,7 @@ function getControlWsUrl(host) {
}
path += "SCExecutor";
if (isBaaS) {
path = path.replace("ide/", "")
path = "/SCIDE/SCExecutor"
}
return prefix + host + path;
}
@@ -316,8 +316,8 @@ function onNodeLogin(data) {
console.log("onNodeLogin");
pubkeyDialogVue.myRole = data.data;
global.myRole = data.data;
loadUserMan();
loadNodeConfig();
loadUserMan();
}
function apply() {

View File

@@ -127,15 +127,7 @@ function getControlWsUrl(host) {
if (document.location.href.startsWith("https")) {
prefix = "wss://";
}
let path = document.location.pathname.lastIndexOf("/");
path = document.location.pathname.substr(0, path + 1);
if (path.indexOf("SCIDE") < 0) {
path += "SCIDE/";
}
path += "SCExecutor";
if (isBaaS) {
path = path.replace("ide/", "")
}
path = "/SCIDE/SCExecutor";
return prefix + host + path;
}

View File

@@ -75,9 +75,7 @@ var getControlWsUrl = function (host) {
var prefix = "ws://";
if (document.location.href.startsWith("https"))
prefix = "wss://";
var path = document.location.pathname.lastIndexOf("/");
path = document.location.pathname.substr(0, path + 1);
path += "SCExecutor";
var path = "/SCIDE/SCExecutor";
return prefix + host + path;
};
var initWSocket = function () {

View File

@@ -176,8 +176,6 @@ var getControlWsUrl = function(host) {
var prefix = "ws://";
if (document.location.href.startsWith("https"))
prefix = "wss://";
var path = document.location.pathname.lastIndexOf("/");
path = document.location.pathname.substr(0, path + 1);
path += "SCExecutor";
var path = "/SCIDE/SCExecutor";
return prefix + host + path;
};