From 9160175d51e2d906e153ce438cf14d0136c287ba Mon Sep 17 00:00:00 2001 From: xiaozhu <2395895331@qq.com> Date: Thu, 13 Aug 2026 16:05:16 +0800 Subject: [PATCH] =?UTF-8?q?update:=E5=8F=AA=E8=AF=BB=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/features/platform/ScriptWorkspace.tsx | 100 +++++++++--------- 1 file changed, 51 insertions(+), 49 deletions(-) diff --git a/frontend/app/features/platform/ScriptWorkspace.tsx b/frontend/app/features/platform/ScriptWorkspace.tsx index 7ab9455..0ed18fe 100644 --- a/frontend/app/features/platform/ScriptWorkspace.tsx +++ b/frontend/app/features/platform/ScriptWorkspace.tsx @@ -421,59 +421,61 @@ export function ScriptWorkspace({ {script.script_name} -
- {isPythonEditing ? ( - <> - {showSaveButton && ( - - )} - - - ) : isEditing ? ( + {!isReadOnlyMode && ( +
+ {isPythonEditing ? ( + <> + {showSaveButton && ( + + )} + + + ) : isEditing ? ( + + ) : ( + + )} - ) : ( - - )} - - - - { - latestVersion - ? `最新 ${latestVersion.version_label}` - : "工作副本已就绪" - } - -
+ + + { + latestVersion + ? `最新 ${latestVersion.version_label}` + : "工作副本已就绪" + } + +
+ )} {/* 只读模式:显示只读编辑器 */}