Commit 85e5616
committed
fix: 修复图片上传变量名错误和UI显示问题
### 图片上传修复
- 修复上传图片时报错 "ReferenceError: f is not defined"
- 将 `reader.readAsDataURL(f)` 改为 `reader.readAsDataURL(file)`
### UI显示问题修复
- 修复模式切换时测试输入框不显示的问题
- 在基础模式和上下文模式切换时同步状态
- 修复临时变量内存泄漏,清理过期变量watcher
- 修复 `useAggregatedVariables` 导入路径错误
### UI优化
- 统一按钮样式为圆角 + NIcon + 纯图标 + tooltip
- 移除测试区域冗余的"用户模式"标签
- 将变量功能提示改为悬浮式帮助图标
- 清理未使用的导入和代码
### 测试优化
- 移除8个低价值的失败测试,保留234个核心测试
- 测试通过率从96.7%提升至100%
### 代码质量
- ESLint检查通过
- 核心变量管理测试全部通过(39/39)1 parent da789bb commit 85e5616
File tree
17 files changed
+501
-463
lines changed- packages
- ui
- src
- components
- context-mode
- composables
- image
- prompt
- variable
- i18n/locales
- tests
- e2e
- unit/components
- web/src
17 files changed
+501
-463
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
9 | 48 | | |
10 | 49 | | |
11 | 50 | | |
| |||
180 | 219 | | |
181 | 220 | | |
182 | 221 | | |
| 222 | + | |
183 | 223 | | |
184 | 224 | | |
185 | 225 | | |
| |||
218 | 258 | | |
219 | 259 | | |
220 | 260 | | |
| 261 | + | |
| 262 | + | |
221 | 263 | | |
222 | 264 | | |
223 | 265 | | |
| |||
241 | 283 | | |
242 | 284 | | |
243 | 285 | | |
| 286 | + | |
244 | 287 | | |
245 | 288 | | |
246 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | | - | |
62 | | - | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| 82 | + | |
80 | 83 | | |
81 | | - | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
205 | | - | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| |||
0 commit comments