laboratory/src/utils/encryption.js
@@ -6,6 +6,7 @@ // 从接口获取密钥 export const fetchEncryptionKey = async () => { try { return encryptionKey const response = await axios.get(`${apiConfig.baseURL}/api/system/getEncryptionKey`) if (response.data && response.data.code === 200) { // 转换为Buffer并验证字节长度