fix: urlparam undefined error
This commit is contained in:
parent
43b79ffffc
commit
b054ddaa31
@ -23,14 +23,23 @@
|
|||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<a class="navbar-brand" href="#"> <img alt="Brand"
|
<a class="navbar-brand" href="#"> <img alt="Brand"
|
||||||
src="./img/logo-1.png" style="height: 30px">
|
src="./img/logo-1.png" style="height: 30px">
|
||||||
</a><a class="navbar-brand">数瑞浏览器 </a> <input id="urlInput"
|
</a><a class="navbar-brand">数瑞浏览器 </a>
|
||||||
type="text" class="form-control" placeholder="输入地址">
|
<div class="input-group-prepend" >
|
||||||
|
<input id="urlInput" style="border-top-left-radius: 5px; border-bottom-left-radius: 5px"
|
||||||
|
type="text" placeholder="输入地址">
|
||||||
|
</div>
|
||||||
|
<div class="input-group-append">
|
||||||
<button class="btn btn-outline-secondary" type="button"
|
<button class="btn btn-outline-secondary" type="button"
|
||||||
onclick="connectNode()">GO</button>
|
onclick="connectNode()">GO
|
||||||
<button class="btn btn-outline-secondary" id="switchRenderBtn" type="button"
|
</button>
|
||||||
onclick="changeRender()">不加载界面</button>
|
</div>
|
||||||
|
<div class="input-group-append">
|
||||||
|
<button class="btn btn-outline-secondary" style="border-top-right-radius: 5px; border-bottom-right-radius: 5px" id="switchRenderBtn" type="button"
|
||||||
|
onclick="changeRender()">不加载界面
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<span> </span>
|
<span> </span>
|
||||||
|
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<select id="selectContract" class="custom-select"
|
<select id="selectContract" class="custom-select"
|
||||||
style="-webkit-appearance: none" onchange="changeApp()">
|
style="-webkit-appearance: none" onchange="changeApp()">
|
||||||
@ -41,7 +50,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class=" nav navbar-right userName" data-toggle="modal"
|
<div class=" nav navbar-right userName" data-toggle="modal"
|
||||||
data-target="#pubkeyDialog">欢迎, {{shortName}}</div>
|
data-target="#pubkeyDialog">欢迎, {{shortName}}
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div id="main">
|
<div id="main">
|
||||||
@ -72,15 +82,18 @@
|
|||||||
style="appearance: none" v-model="selectedSM2Key"
|
style="appearance: none" v-model="selectedSM2Key"
|
||||||
@change="changeSM2Key($event)">
|
@change="changeSM2Key($event)">
|
||||||
<option v-for="(item,index) in sm2KeyList" :key="index"
|
<option v-for="(item,index) in sm2KeyList" :key="index"
|
||||||
:value='item.id'>{{item.title}}</option>
|
:value='item.id'>{{item.title}}
|
||||||
|
</option>
|
||||||
</select>
|
</select>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button class="btn btn-outline-primary" for="localKeyList"
|
<button class="btn btn-outline-primary" for="localKeyList"
|
||||||
v-on:click="exportPubkey">导出公钥</button>
|
v-on:click="exportPubkey">导出公钥
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button class="btn btn-outline-danger" for="localKeyList"
|
<button class="btn btn-outline-danger" for="localKeyList"
|
||||||
v-on:click="deletePubkey">删除公钥</button>
|
v-on:click="deletePubkey">删除公钥
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -96,10 +109,12 @@
|
|||||||
|
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button type="button" class="btn btn-outline-primary"
|
<button type="button" class="btn btn-outline-primary"
|
||||||
id="generatePubkeyBtn" v-on:click="generatePubkey">生成新公钥</button>
|
id="generatePubkeyBtn" v-on:click="generatePubkey">生成新公钥
|
||||||
|
</button>
|
||||||
<button type="button" class="btn btn-outline-primary"
|
<button type="button" class="btn btn-outline-primary"
|
||||||
data-dismiss="modal" id="importPubkeyBtn"
|
data-dismiss="modal" id="importPubkeyBtn"
|
||||||
v-on:click="importPubkey">导入公钥</button>
|
v-on:click="importPubkey">导入公钥
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -119,11 +134,13 @@
|
|||||||
class="custom-select" style="appearance: none"
|
class="custom-select" style="appearance: none"
|
||||||
@change="changeProduct($event)">
|
@change="changeProduct($event)">
|
||||||
<option v-for="(item,index) in productList" :key="index"
|
<option v-for="(item,index) in productList" :key="index"
|
||||||
:value='item.id'>{{item.title}}</option>
|
:value='item.id'>{{item.title}}
|
||||||
|
</option>
|
||||||
</select>
|
</select>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button class="btn btn-outline-primary" type="button"
|
<button class="btn btn-outline-primary" type="button"
|
||||||
v-on:click="applyRole">角色认证</button>
|
v-on:click="applyRole">角色认证
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -167,6 +184,8 @@
|
|||||||
init();
|
init();
|
||||||
|
|
||||||
//initWSocket();
|
//initWSocket();
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -601,6 +601,7 @@ function renewList() {
|
|||||||
for (let i = 0; i < global.contracts.length; ++i) {
|
for (let i = 0; i < global.contracts.length; ++i) {
|
||||||
const c = global.contracts[i];
|
const c = global.contracts[i];
|
||||||
console.log(c);
|
console.log(c);
|
||||||
|
if (c.contractStatus=="KILLED") continue;
|
||||||
if (!c.id) {
|
if (!c.id) {
|
||||||
c.id = c.contractID;
|
c.id = c.contractID;
|
||||||
}
|
}
|
||||||
|
@ -193,9 +193,11 @@ var initGlobal = function (urlParams) {
|
|||||||
global.isBaaS = true
|
global.isBaaS = true
|
||||||
primaryColor = '#08263a'
|
primaryColor = '#08263a'
|
||||||
}
|
}
|
||||||
if (urlParams && urlParams.keys) {
|
if (urlParams){
|
||||||
global.urlparam = urlParams;
|
global.urlparam = urlParams;
|
||||||
global.sm2Key = urlParams.keys
|
}
|
||||||
|
if (urlParams && urlParams.keys) {
|
||||||
|
global.sm2Key = urlParams.keys;
|
||||||
} else {
|
} else {
|
||||||
global.sm2Key = localStorage.getItem("PrivKey");
|
global.sm2Key = localStorage.getItem("PrivKey");
|
||||||
if (!global.sm2Key || global.sm2Key.length < 100) {
|
if (!global.sm2Key || global.sm2Key.length < 100) {
|
||||||
|
Loading…
Reference in New Issue
Block a user