移除 UI 编辑器演示路径
要求 UI 编辑器从项目工作区显式接收 projectPath 将旧 agent-chat 演示入口恢复为开发 Agent 面板 删除无效的 projectId 参数传递
This commit is contained in:
@@ -3106,7 +3106,6 @@ export default function ProjectDevelopmentView({
|
||||
<UiEditorPage
|
||||
projectPath={projectPath}
|
||||
resourceId={uiEditorRoute.resourceId}
|
||||
projectId={manifest.projectId}
|
||||
resourceLabel={uiEditorRoute.resourceLabel}
|
||||
onBack={() => setUiEditorRoute(null)}
|
||||
/>
|
||||
|
||||
@@ -19,13 +19,13 @@ import {
|
||||
} from './useUiEditorPage';
|
||||
|
||||
export default function UiEditorPage({
|
||||
projectPath = '/tmp/ui_editor',
|
||||
projectPath,
|
||||
resourceId,
|
||||
resourceLabel,
|
||||
onBack,
|
||||
stateStore = mockUiDesignStateStore,
|
||||
}: {
|
||||
projectPath?: string;
|
||||
projectPath: string;
|
||||
resourceId?: string;
|
||||
resourceLabel?: string;
|
||||
onBack?: () => void;
|
||||
|
||||
Reference in New Issue
Block a user