mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2025-12-30 09:42:25 +00:00
fix: base64 decode为hex字符串而非原始字符串
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user