Skip to content

Commit

Permalink
fix: 修复 getFileData 外层注入不可用问题
Browse files Browse the repository at this point in the history
  • Loading branch information
luozefeng committed Sep 27, 2021
1 parent 23d9691 commit 9691811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/lb-components/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ const App: React.FC<AppProps> = (props) => {
initialIndex = 0,
toolInstance,
setToolInstance,
getFileData
} = props;
useEffect(() => {
store.dispatch(InitTaskData({ imgList, onSubmit, stepList, step, initialIndex }));
store.dispatch(InitTaskData({ imgList, onSubmit, stepList, step, initialIndex, getFileData }));
}, []);

useEffect(() => {
Expand Down

0 comments on commit 9691811

Please sign in to comment.