diff --git a/apps/web/src/pages/generate/hooks/useStep2Materials.ts b/apps/web/src/pages/generate/hooks/useStep2Materials.ts index 3a07d95ef..5efa1dd8d 100755 --- a/apps/web/src/pages/generate/hooks/useStep2Materials.ts +++ b/apps/web/src/pages/generate/hooks/useStep2Materials.ts @@ -28,6 +28,7 @@ export function useStep2Materials({ useMaterialLibrary() const smartMatch = useSmartMatch({ + libraryId: selectedLibraryId, materials, smartSelectedIds, onSmartSelectedIdsChange, @@ -58,11 +59,8 @@ export function useStep2Materials({ // 手动选择 selectedMaterials, handleToggleMaterial, - // 智能匹配 - smartMatchInput: smartMatch.smartMatchInput, - setSmartMatchInput: smartMatch.setSmartMatchInput, + // 智能匹配(简化版) smartMatching: smartMatch.smartMatching, - smartMatchedResults: smartMatch.smartMatchedResults, hasMatched: smartMatch.hasMatched, smartSelectedIds: smartMatch.smartSelectedIds, handleSmartMatch: smartMatch.handleSmartMatch, @@ -77,3 +75,4 @@ export function useStep2Materials({ } export default useStep2Materials +