From d600cbf285bcc98c9a5f511d254afe8f013bff15 Mon Sep 17 00:00:00 2001 From: panda <1415243231@qq.com> Date: Thu, 21 May 2026 23:54:57 +0800 Subject: [PATCH] feat: add quick action buttons (preview/undo/reset) to sidebar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sidebar now has 快捷操作 section matching Streamlit app functionality: - 预览 — sends "预览报表" to preview current JRXML - 撤销 — sends "撤销上一步修改" to revert last change - 重置 — sends "重新来,清空当前报表" to reset session Session store now tracks history_states for undo availability check. --- frontend/src/App.vue | 2 +- frontend/src/components/Sidebar.vue | 90 +++++++++++++++++++++++++++++ frontend/src/stores/session.ts | 10 +++- 3 files changed, 99 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 454436d..a9bf234 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -114,7 +114,7 @@ async function handleSend(text: string, files: File[]) {