Commit 0eef4cf
committed
fix(ui): 修复 Vue 模板中 Ref 自动解包导致的组件显示问题
- 修复 ImageWorkspace 中 PromptPanel 条件渲染错误
- 修正 App.vue 向 Context 组件传递 services 的方式
- 删除 ContextUserWorkspace 和 ContextSystemWorkspace 中未使用的 services prop
- 统一遵循 Vue 3 模板 Ref 自动解包规则
问题根源:Vue 3 模板中顶层 Ref 会自动解包,使用 services?.value
实际访问的是 services.value.value,导致条件判断失败
修复 #1981 parent 71c2331 commit 0eef4cf
File tree
5 files changed
+1
-14
lines changed- packages
- extension/src
- ui/src/components
- context-mode
- image-mode
- web/src
5 files changed
+1
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| |||
339 | 338 | | |
340 | 339 | | |
341 | 340 | | |
342 | | - | |
343 | 341 | | |
344 | 342 | | |
345 | 343 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
| |||
265 | 264 | | |
266 | 265 | | |
267 | 266 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | 267 | | |
272 | 268 | | |
273 | 269 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | 253 | | |
255 | 254 | | |
256 | 255 | | |
| |||
309 | 308 | | |
310 | 309 | | |
311 | 310 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | 311 | | |
317 | 312 | | |
318 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| |||
339 | 338 | | |
340 | 339 | | |
341 | 340 | | |
342 | | - | |
343 | 341 | | |
344 | 342 | | |
345 | 343 | | |
| |||
0 commit comments