[inula-package.json] exports更新
This commit is contained in:
parent
08077af64f
commit
cc49467c2f
|
@ -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函数
|
// 针对不同的Store类型,使用对应的connect函数
|
||||||
if (type === 'InulaXCompat') {
|
if (type === 'InulaXCompat') {
|
||||||
return hConnect(null as any, mapDispatchToProps)(ConnectHRouterWithContext as any);
|
return hConnect(null as any, mapDispatchToProps)(ConnectedRouterWithContext as any);
|
||||||
}
|
}
|
||||||
if (type === 'Redux') {
|
if (type === 'Redux') {
|
||||||
return connect(null, mapDispatchToProps)(ConnectedRouterWithContext);
|
return connect(null, mapDispatchToProps)(ConnectedRouterWithContext);
|
||||||
|
|
Loading…
Reference in New Issue