diff --git a/furniture-3d-system/src/app/asset-center/material-library/MaterialLibraryClient.test.tsx b/furniture-3d-system/src/app/asset-center/material-library/MaterialLibraryClient.test.tsx index d89303b7..f7e6cc8d 100644 --- a/furniture-3d-system/src/app/asset-center/material-library/MaterialLibraryClient.test.tsx +++ b/furniture-3d-system/src/app/asset-center/material-library/MaterialLibraryClient.test.tsx @@ -134,7 +134,7 @@ describe('MaterialLibraryClient', () => { // Switch to substrate tab first await actor.click(screen.getByRole('button', { name: /基材录入/ })) - await actor.click(screen.getByRole('button', { name: '新建基材' })) + await actor.click(screen.getByRole('button', { name: /新建/ })) await actor.type(screen.getByLabelText('售价'), '200') await actor.click(screen.getByRole('button', { name: '创建' })) diff --git a/furniture-3d-system/src/components/platform/PlatformSplitLayout.tsx b/furniture-3d-system/src/components/platform/PlatformSplitLayout.tsx index 12d6e470..06064cae 100644 --- a/furniture-3d-system/src/components/platform/PlatformSplitLayout.tsx +++ b/furniture-3d-system/src/components/platform/PlatformSplitLayout.tsx @@ -47,6 +47,7 @@ export function PlatformSplitLayout({ }: PlatformSplitLayoutProps) { return (
+ {/* 页面标题区(如果有) */} {title ? (
@@ -76,6 +77,7 @@ export function PlatformSplitLayout({
) : null} + {/* 指标条 */} {metrics && metrics.length > 0 ? (
@@ -99,6 +101,7 @@ export function PlatformSplitLayout({
) : null} + {/* 反馈提示 */} {feedback ? (
) : null} + {/* 主体:左右分栏 */}
+ {/* 左侧:3D 预览区 */}
{leftContent}
+ + {/* 右侧:检查器面板 */}