feat: 完善按配置隐藏控制台菜单选项

This commit is contained in:
mofeng-git
2026-07-16 21:02:23 +08:00
parent 50dd419e5a
commit 0482987bf1
6 changed files with 41 additions and 7 deletions

View File

@@ -117,6 +117,7 @@ import {
Loader2,
AlertTriangle,
Bot,
ClipboardPaste,
TimerReset,
} from 'lucide-vue-next'
@@ -2851,6 +2852,13 @@ watch(isWindows, () => {
</Label>
<Switch id="feature-computer-use" v-model="featureVisibility.computerUse" />
</div>
<div class="flex items-center justify-between gap-4 px-3 py-3">
<Label for="feature-paste-text" class="flex min-w-0 items-center gap-2 font-normal">
<ClipboardPaste class="h-4 w-4 shrink-0 text-muted-foreground" />
<span class="truncate">{{ t('settings.pasteText') }}</span>
</Label>
<Switch id="feature-paste-text" v-model="featureVisibility.pasteText" />
</div>
</CardContent>
</Card>
</div>