router React.lazy

This commit is contained in:
Wang Kejun 2022-08-02 14:51:34 +08:00
parent c7b9a3ccc2
commit 6c8125beb2
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ module.exports = () => {
t.objectProperty(t.identifier('title'), t.stringLiteral(navigationBarTitleText || '')),
t.objectProperty(t.identifier('path'), t.stringLiteral(pagePath)),
t.objectProperty(t.identifier('element'), t.callExpression(
t.identifier('LazyLoad'),
t.memberExpression(t.identifier('React'), t.identifier('lazy')),
[
t.arrowFunctionExpression(
[],