fix
This commit is contained in:
parent
39d5e048d0
commit
f2ac06aea6
@ -704,6 +704,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
const isBaaS = true
|
||||||
var h = document.body.clientHeight
|
var h = document.body.clientHeight
|
||||||
- $("header").css("height").replace("px", "")
|
- $("header").css("height").replace("px", "")
|
||||||
- $("footer").css("height").replace("px", "");
|
- $("footer").css("height").replace("px", "");
|
||||||
|
@ -138,7 +138,7 @@ function getControlWsUrl(host) {
|
|||||||
function initWSocket() {
|
function initWSocket() {
|
||||||
console.log("[nodecenterManagement.js] initWSocket : ");
|
console.log("[nodecenterManagement.js] initWSocket : ");
|
||||||
let host = document.location.host;
|
let host = document.location.host;
|
||||||
let url = getControlWsUrl(host);
|
let url = getControlWsUrl(global.urlparam && global.urlparam.nodeAddr ? global.urlparam.nodeAddr : host);
|
||||||
// console.log("connect ws:" + url);
|
// console.log("connect ws:" + url);
|
||||||
global.wssocket = createWssocket(url, function () {
|
global.wssocket = createWssocket(url, function () {
|
||||||
getSession();
|
getSession();
|
||||||
@ -478,7 +478,7 @@ function init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getRequestParameters() {
|
function getRequestParameters() {
|
||||||
if (location.href.indexOf("/BaaSOnlineIDE.html") !== -1) {
|
if (isBaaS) {
|
||||||
let params = location.href.replace(/[^#]*(#(\/)?|\?)/, '')
|
let params = location.href.replace(/[^#]*(#(\/)?|\?)/, '')
|
||||||
let url = location.href.replace(params, '')
|
let url = location.href.replace(params, '')
|
||||||
while (!params) {
|
while (!params) {
|
||||||
|
@ -203,8 +203,7 @@ function initVue() {
|
|||||||
function initGlobal(urlParams) {
|
function initGlobal(urlParams) {
|
||||||
window.global = {};
|
window.global = {};
|
||||||
global.result = "";
|
global.result = "";
|
||||||
if (location.href.indexOf("/BaaSOnlineIDE.html") !== -1) {
|
if (isBaaS) {
|
||||||
global.isBaaS = true
|
|
||||||
primaryColor = "#08263a"
|
primaryColor = "#08263a"
|
||||||
}
|
}
|
||||||
if (urlParams){
|
if (urlParams){
|
||||||
|
@ -176,7 +176,7 @@ var importContractInstanceCodeByDOI = function () {
|
|||||||
|
|
||||||
var openinClient = function () {
|
var openinClient = function () {
|
||||||
let url
|
let url
|
||||||
if (global.isBaaS) {
|
if (isBaaS) {
|
||||||
url = `${location.origin}/client/BaaSClient.html${location.search}`;
|
url = `${location.origin}/client/BaaSClient.html${location.search}`;
|
||||||
} else {
|
} else {
|
||||||
url = `${location.origin}/client/bdwareclient.html?self=true&contract=${mainVue.contracts[selectedContract.value].id}`
|
url = `${location.origin}/client/bdwareclient.html?self=true&contract=${mainVue.contracts[selectedContract.value].id}`
|
||||||
|
Loading…
Reference in New Issue
Block a user