This commit is contained in:
2025-08-13 19:48:33 +08:00
parent 2879a0243e
commit 9b522cb819
2 changed files with 2 additions and 4 deletions

View File

@ -85,8 +85,6 @@ service.interceptors.request.use(
// 生成一个 AES 密钥
const aesKey = generateAesKey();
config.headers[encryptHeader] = encrypt(encryptBase64(aesKey));
console.log(encrypt(encryptBase64(aesKey)));
config.data = typeof config.data === 'object' ? encryptWithAes(JSON.stringify(config.data), aesKey) : encryptWithAes(config.data, aesKey);
}
}