董国庆
2026-02-04 b9629f1814e40cec572e51a8e3a2ccde0ab26614
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并验证字节长度