From a31a8d00a037f808e8ed8a9ef3903f61ddb3f368 Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Fri, 30 Aug 2024 22:27:23 +0800 Subject: [PATCH] chore: keep console.info --- config/webpack.config.js | 2 +- src/hooks/useStreaming/chat.handler.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index 3acbaa79..a4c915a8 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -171,7 +171,7 @@ module.exports = function (webpackEnv) { }, compress: { drop_console: false, - pure_funcs: ["console.log"], + pure_funcs: ["console.log", "console.info"], ecma: 5, warnings: false, // Disabled because of an issue with Uglify breaking seemingly valid code: diff --git a/src/hooks/useStreaming/chat.handler.ts b/src/hooks/useStreaming/chat.handler.ts index 60e873da..1e4b1a3a 100644 --- a/src/hooks/useStreaming/chat.handler.ts +++ b/src/hooks/useStreaming/chat.handler.ts @@ -97,6 +97,8 @@ const handler = ( } // } }); + // 推给 PC 端 + console.info("{{NEW_MSG}}") break; } case "reply":