Browse Source

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

疯狂的狮子Li 1 year ago
parent
commit
81195fd9c8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/utils/crypto.ts

+ 2 - 2
src/utils/crypto.ts

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