提交 8a15e9bd 编写于 作者: W WhatAKitty 提交者: ddcat1115

fix error while using react-script (#516)

上级 3683e0dd
......@@ -11,7 +11,8 @@ const dynamicWrapper = (app, models, component) => dynamic({
component: () => {
const p = component();
return new Promise((resolve, reject) => {
p.then((Comp) => {
p.then((raw) => {
const Comp = raw.default || raw;
resolve(props => <Comp {...props} routerData={getRouterData(app)} />);
}).catch(err => reject(err));
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册