fix: urlparam undefined error

This commit is contained in:
root
2021-06-16 12:11:50 +08:00
parent 43b79ffffc
commit b054ddaa31
3 changed files with 165 additions and 143 deletions

View File

@@ -601,6 +601,7 @@ function renewList() {
for (let i = 0; i < global.contracts.length; ++i) {
const c = global.contracts[i];
console.log(c);
if (c.contractStatus=="KILLED") continue;
if (!c.id) {
c.id = c.contractID;
}

View File

@@ -193,9 +193,11 @@ var initGlobal = function (urlParams) {
global.isBaaS = true
primaryColor = '#08263a'
}
if (urlParams){
global.urlparam = urlParams;
}
if (urlParams && urlParams.keys) {
global.urlparam = urlParams;
global.sm2Key = urlParams.keys
global.sm2Key = urlParams.keys;
} else {
global.sm2Key = localStorage.getItem("PrivKey");
if (!global.sm2Key || global.sm2Key.length < 100) {