From 9755a048ba56d7d91f1d92bf09489f034a76d818 Mon Sep 17 00:00:00 2001 From: yibo Date: Tue, 1 Sep 2026 17:18:05 +0800 Subject: [PATCH] test(graph-console): 上下文注入逻辑抽成纯函数并补回归测试 --- web/src/components/GraphChatBar.vue | 14 +++----------- web/src/composables/chatContextInjection.js | 37 +++++++++++++++++++++++++++++++++++++ web/src/composables/chatContextInjection.test.js | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+), 11 deletions(-) create mode 100644 web/src/composables/chatContextInjection.js create mode 100644 web/src/composables/chatContextInjection.test.js diff --git a/web/src/components/GraphChatBar.vue b/web/src/components/GraphChatBar.vue index 840d2f9..1bd7a04 100644 --- a/web/src/components/GraphChatBar.vue +++ b/web/src/components/GraphChatBar.vue @@ -50,6 +50,7 @@