Compare commits
No commits in common. "master" and "v1.6.6" have entirely different histories.
@ -49,15 +49,9 @@ var initVue = function () {
|
|||||||
newKey.id = this.sm2KeyList.length;
|
newKey.id = this.sm2KeyList.length;
|
||||||
newKey.title = headerVue.shortName;
|
newKey.title = headerVue.shortName;
|
||||||
newKey.sm2Key = this.sm2KeyStr;
|
newKey.sm2Key = this.sm2KeyStr;
|
||||||
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);
|
this.sm2KeyList.push(newKey);
|
||||||
localStorage.setItem("PrivKeyList", JSON.stringify(this.sm2KeyList));
|
localStorage.setItem("PrivKeyList", JSON.stringify(this.sm2KeyList));
|
||||||
|
|
||||||
getSession();
|
getSession();
|
||||||
listProjects("priv");
|
listProjects("priv");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user