feat: update useStep2Materials for simplified smart match

This commit is contained in:
2026-08-05 00:01:09 +08:00
parent 774e6361d4
commit 937b72bf3a
@@ -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