mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-10 07:03:15 +08:00
fix: base64 decode为hex字符串而非原始字符串
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user