add 新增 请求加密传输 合并优化 !pr377

This commit is contained in:
疯狂的狮子Li 2023-07-10 18:21:52 +08:00
parent d0d67b90bc
commit 81195fd9c8

View File

@ -23,10 +23,10 @@ export const generateAesKey = () => {
}; };
/** /**
* aes * base64
* @returns {string} * @returns {string}
*/ */
export const encryptBase64 = (str: string) => { export const encryptBase64 = (str: CryptoJS.lib.WordArray) => {
return CryptoJS.enc.Base64.stringify(str); return CryptoJS.enc.Base64.stringify(str);
}; };