feat: add quick action buttons (preview/undo/reset) to sidebar

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.
This commit is contained in:
2026-05-21 23:54:57 +08:00
parent a364e1de81
commit d600cbf285
3 changed files with 99 additions and 3 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ async function handleSend(text: string, files: File[]) {
<template>
<div class="app-layout">
<Sidebar />
<Sidebar @quickAction="(text) => handleSend(text, [])" />
<main class="main-area">
<div class="chat-container" ref="chatContainer">