可信代码库-AI大模型对话刷新、复制、点赞、点踩功能开发

This commit is contained in:
付民康
2025-07-01 17:03:24 +08:00
parent f496b3a3be
commit df692cbda4
2 changed files with 15 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ const $Decrypt = (text) => {
// 尝试解析为JSON对象
return JSON.parse(originalText);
} catch (e) {
console.error('解密失败:', e);
// console.error('解密失败:', e);
return text; // 解密失败返回原始数据
}
};
@@ -199,6 +199,7 @@ const proxyService = (params: any, customConfigs?: CustomConfigs) => {
// response 拦截器
service.interceptors.response.use(
(response) => {
debugger
response.data.data = $Decrypt(response.data.data)
return response;
},