update index_datanet

This commit is contained in:
CaiHQ
2022-12-13 10:39:08 +08:00
parent 141532cd19
commit 2ab42516f9
5 changed files with 323 additions and 1 deletions

View File

@@ -62,7 +62,15 @@ function initVue() {
newKey.id = this.sm2KeyList.length;
newKey.title = headerVue.shortName;
newKey.sm2Key = this.sm2KeyStr;
this.sm2KeyList.push(newKey);
var exist = false;
for (var i=0;i<this.sm2KeyList.length;i++){
var iterKey = this.sm2KeyList[i];
if (iterKey.sm2Key==newKey.sm2Key)
exist = true;
}
if (!exist)
this.sm2KeyList.push(newKey);
localStorage.setItem("PrivKeyList", JSON.stringify(this.sm2KeyList));
getSession();
listProjects("priv");