diff --git a/src/components/JoSearch/JoSearch.tsx b/src/components/JoSearch/JoSearch.tsx index 6c577de..116283e 100644 --- a/src/components/JoSearch/JoSearch.tsx +++ b/src/components/JoSearch/JoSearch.tsx @@ -400,7 +400,7 @@ const JoSearch: React.FC = ({ defaultInputs, bomCombo, printerCombo, jobT bomCombo={bomCombo} onClose={onCloseCreateJoModal} onSearch={() => { - setInputs(defaultInputs); + setInputs({ ...defaultInputs }); // 创建新对象,确保引用变化 setPagingController(defaultPagingController); }} />