fix: base64 decode为hex字符串而非原始字符串

This commit is contained in:
dap
2025-08-23 13:43:33 +08:00
parent d9c93285ad
commit 1a29fc244e

View File

@@ -26,5 +26,5 @@ export function encodeBase64(str: string) {
* 解码base64 * 解码base64
*/ */
export function decodeBase64(str: string) { export function decodeBase64(str: string) {
return CryptoJS.enc.Base64.parse(str).toString(); return CryptoJS.enc.Base64.parse(str).toString(CryptoJS.enc.Utf8);
} }