From 1a29fc244e3ec43074f2463e9fd5b5f24392c12f Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Sat, 23 Aug 2025 13:43:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20base64=20decode=E4=B8=BAhex=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E8=80=8C=E9=9D=9E=E5=8E=9F=E5=A7=8B=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/utils/src/encryption/crypto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/src/encryption/crypto.ts b/packages/utils/src/encryption/crypto.ts index 5e938f0a..776ad37a 100644 --- a/packages/utils/src/encryption/crypto.ts +++ b/packages/utils/src/encryption/crypto.ts @@ -26,5 +26,5 @@ export function encodeBase64(str: string) { * 解码base64 */ export function decodeBase64(str: string) { - return CryptoJS.enc.Base64.parse(str).toString(); + return CryptoJS.enc.Base64.parse(str).toString(CryptoJS.enc.Utf8); }