fix: base64 decode为hex字符串而非原始字符串
This commit is contained in:
parent
d9c93285ad
commit
1a29fc244e
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user