fix: urlparam undefined error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user