From 222b254f070d42e30d85f583d20424f29e866efb Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Tue, 13 Dec 2022 10:38:24 +0800 Subject: [PATCH] fix duplicate import pubkey --- js/commonutil.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/js/commonutil.js b/js/commonutil.js index dc12c64..0dee959 100644 --- a/js/commonutil.js +++ b/js/commonutil.js @@ -49,9 +49,15 @@ var initVue = function () { 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