From b25fde953ecca47afdf239d602d81845cbe19de1 Mon Sep 17 00:00:00 2001 From: bawwtracs Date: Wed, 20 Oct 2021 16:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=A0=E5=AF=86=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util.js b/src/util/util.js index 65984f63..586770fe 100644 --- a/src/util/util.js +++ b/src/util/util.js @@ -110,9 +110,9 @@ export const encryption = params => { result[ele] = btoa(result[ele]); }); } else { + key = CryptoJS.enc.Latin1.parse(key); param.forEach(ele => { var data = result[ele]; - key = CryptoJS.enc.Latin1.parse(key); var iv = key; // 加密 var encrypted = CryptoJS.AES.encrypt(data, key, { -- Gitee