Skip to content

Commit 5b79924

Browse files
committed
fix(ui): 恢复全屏界面的对比功能
移除 OutputDisplayFullscreen 对 diff action 的过滤,恢复对比功能。 当有 originalContent 时,用户可以在全屏界面查看优化前后的差异。 当没有 originalContent 时,对比按钮自然不会显示。 Closes #200
1 parent d8018dc commit 5b79924

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/ui/src/components/OutputDisplayFullscreen.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ const internalVisible = computed({
9393
})
9494
9595
const coreEnabledActions = computed(() => {
96-
// 全屏界面不需要对比功能(用于新增/编辑/预览场景
97-
// 只保留 Markdown 渲染和原文显示
98-
return props.enabledActions?.filter(action => action !== 'fullscreen' && action !== 'diff')
96+
// 全屏界面只需移除 fullscreen(避免递归全屏
97+
// diff 功能保留:当有 originalContent 时,OutputDisplayCore 会显示对比按钮
98+
return props.enabledActions?.filter(action => action !== 'fullscreen')
9999
})
100100
101101
const internalContent = ref(props.content)

0 commit comments

Comments
 (0)