[inula-package.json] exports更新

This commit is contained in:
wangxinrong 2023-11-01 21:36:57 +08:00
parent 08077af64f
commit cc49467c2f
1 changed files with 1 additions and 6 deletions

View File

@ -130,14 +130,9 @@ function getConnectedRouter(type: StoreType) {
);
};
const ConnectHRouterWithContext = (props: any) => {
const { store, ...rest } = props;
return <ConnectedRouter store={store} storeType={type} {...rest} />;
};
// 针对不同的Store类型使用对应的connect函数
if (type === 'InulaXCompat') {
return hConnect(null as any, mapDispatchToProps)(ConnectHRouterWithContext as any);
return hConnect(null as any, mapDispatchToProps)(ConnectedRouterWithContext as any);
}
if (type === 'Redux') {
return connect(null, mapDispatchToProps)(ConnectedRouterWithContext);