浏览代码

fix: 移除 Settings 中未定义的 Gates 引用,修复 config 命令报错

Gates 是 Anthropic 内部组件,反编译版本中不存在,运行时引用导致 ReferenceError。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
claude-code-best 3 周之前
父节点
当前提交
a889ed8402
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/components/Settings/Settings.tsx

+ 1 - 2
src/components/Settings/Settings.tsx

@@ -95,8 +95,7 @@ export function Settings(t0) {
   }
   let t7;
   if ($[13] !== contentHeight) {
-    const GatesComponent = Gates as any;
-    t7 = false ? [<Tab key="gates" title="Gates"><GatesComponent onOwnsEscChange={setGatesOwnsEsc} contentHeight={contentHeight} /></Tab>] : [];
+    t7 = [];
     $[13] = contentHeight;
     $[14] = t7;
   } else {