Files
msh-system/msh_single_uniapp/.fixes/backlog/FIX-002-clear-chat-button.md
scottpan 6122f94818 Add automated fix workflow for AI nutritionist page
- Create .fixes/ directory structure for tracking repairs
- Add FIX-001 to FIX-009 repair tasks based on Cursor review
- Add automation scripts (start-fix.sh, complete-fix.sh)
- Update HEARTBEAT.md with repair checklist
- Create AUTOMATION_PLAN.md with workflow documentation

Fixes address:
- Remove fake initial data
- Add clear chat button
- Split oversized component
- Optimize multi-image upload
- Fix scroll behavior
- Remove dead code
- Extract hardcoded config
2026-02-28 06:56:43 +08:00

33 lines
709 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# FIX-002: 添加清空对话按钮
**状态**: 待开始
**创建时间**: 2026-02-28
**优先级**: 中
**负责人**: msh-agent
---
## 问题描述
`clearChat()` 方法已实现清空消息列表和会话ID但在模板中没有对应的触发按钮用户无法清空对话。
### 预期行为
在页面顶部导航栏或输入区域提供"清空对话"按钮。
---
## 修复方案
`promo-banner` 右侧添加清空按钮图标,绑定 `@click="clearChat"`
---
## 实施步骤
- [ ] 1. 备份原文件
- [ ] 2. 在 `promo-banner` 区域添加清空按钮
- [ ] 3. 绑定 `@click="clearChat"`
- [ ] 4. 添加样式
- [ ] 5. 测试确认对话框
- [ ] 6. 多端测试