From 5969d04c993a8aa7623818b7bf2f0fb77c2ff3b3 Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Tue, 21 Jul 2026 17:11:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(input):=20=E7=B2=BE=E7=AE=80=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A0=8F=E7=89=88=E6=9C=AC=E6=8E=A7=E5=88=B6=E4=B8=8E?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 版本控制按钮只显示「版本控制」,不再显示开/关状态 - 权限按钮去掉「权限:」前缀,右侧新增执行环境标签 (沙箱=次要色 / 完全访问=警示黄),仅在宿主机模式显示 --- static/src/components/input/InputComposer.vue | 20 ++++++++++++------- .../styles/components/input/_composer.scss | 8 ++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/static/src/components/input/InputComposer.vue b/static/src/components/input/InputComposer.vue index 5f13f479..596ded20 100644 --- a/static/src/components/input/InputComposer.vue +++ b/static/src/components/input/InputComposer.vue @@ -390,7 +390,7 @@ :disabled="!isConnected || streamingMessage" @click="$emit('open-versioning-dialog')" > - 版本控制:{{ versioningEnabled ? '开启' : '关闭' }} + 版本控制
{ return matched ? matched.label : props.currentPermissionMode; }); -const currentExecutionLabel = computed(() => { - const options = props.executionModeOptions || []; - const currentMode = String(props.currentExecutionMode || ''); - const currentMatched = options.find((item) => item.value === currentMode); - return currentMatched ? currentMatched.label : currentMode; +const currentExecutionShortLabel = computed(() => { + const mode = String(props.currentExecutionMode || ''); + if (mode === 'direct') return '完全访问'; + if (mode === 'sandbox') return '沙箱'; + return mode; }); const modelContextWindow = computed(() => { diff --git a/static/src/styles/components/input/_composer.scss b/static/src/styles/components/input/_composer.scss index cf13b3ec..92c3bbec 100644 --- a/static/src/styles/components/input/_composer.scss +++ b/static/src/styles/components/input/_composer.scss @@ -528,6 +528,14 @@ body[data-theme='light'] { transition: transform 0.18s ease; } +.permission-switcher__exec { + color: var(--text-secondary); +} + +.permission-switcher__exec--warn { + color: var(--state-warning); +} + .permission-switcher__caret.open { transform: rotate(270deg); }