From 950744adcaac4a6225d4eeb4c2163b017bafe710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=92?= Date: Wed, 1 Oct 2025 17:12:12 +0800 Subject: [PATCH] 1 --- src/api/system/instruction.js | 8 + src/views/system/jd-instruction/index.vue | 179 +++++++++++++++++++++- 2 files changed, 184 insertions(+), 3 deletions(-) diff --git a/src/api/system/instruction.js b/src/api/system/instruction.js index 9c9169d..d96a110 100644 --- a/src/api/system/instruction.js +++ b/src/api/system/instruction.js @@ -8,4 +8,12 @@ export function executeInstruction(data) { }) } +export function getHistory(type, limit) { + return request({ + url: '/jarvis/instruction/history', + method: 'get', + params: { type, limit } + }) +} + diff --git a/src/views/system/jd-instruction/index.vue b/src/views/system/jd-instruction/index.vue index 015493a..178c92f 100644 --- a/src/views/system/jd-instruction/index.vue +++ b/src/views/system/jd-instruction/index.vue @@ -35,12 +35,52 @@ 复制全部 + + 历史消息记录 + +
+
+
+ 历史请求(最近 {{ historyLimit }} 条) + 刷新 +
+
+
+ +
+
+
+
{{ extractTime(item) }}
+
{{ extractMessage(item) }}
+
+
+
+
+ +
+
+ 历史响应(最近 {{ historyLimit }} 条) + 复制全部 +
+
+
+ +
+
+
+
{{ extractTime(item) }}
+
{{ extractMessage(item) }}
+
+
+
+
+