fix: path bug
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
4
js/cm.js
4
js/cm.js
@@ -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 () {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user