From 6b88429e748c8414c81b04abc09d377475490c2e Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Mon, 11 Nov 2024 18:32:05 +0800 Subject: [PATCH] no message --- html/search.html | 8 +++----- js/common.js | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/html/search.html b/html/search.html index 5fd5f93..afd373d 100644 --- a/html/search.html +++ b/html/search.html @@ -119,7 +119,7 @@ diff --git a/js/common.js b/js/common.js index 35f4c49..5e3706b 100644 --- a/js/common.js +++ b/js/common.js @@ -81,13 +81,13 @@ function objectToQueryString(obj = {}) { return queryString ? "?" + queryString : "" } -function decodeKey(encrypted) { +function decodeKey(encrypted,key) { return new Promise((resolve, reject) => { try { const storedData = localStorage.getItem("basicData") const basicData = JSON.parse(storedData) console.log("basicData", basicData) - const key = basicData.encodekey + // const key = basicData.encodekey console.log("encodekey", key) const encryptedData = CryptoJS.enc.Base64.parse(encrypted)