修正了routerBuilder的一些细节
This commit is contained in:
parent
ba3f9dcbab
commit
2d6c938f04
|
|
@ -119,7 +119,7 @@ function makeWebAllRouters(namespaceDir, projectDir, routerFileDir) {
|
|||
const children = Object.values(pages).filter((ele) => ele.hasWeb).map(({ path, oakDisablePulldownRefresh }) => {
|
||||
const properties = [
|
||||
factory.createPropertyAssignment('path', factory.createStringLiteral(path)),
|
||||
factory.createPropertyAssignment('namespace', factory.createStringLiteral(path2)),
|
||||
factory.createPropertyAssignment('namespace', factory.createStringLiteral(ns)),
|
||||
factory.createPropertyAssignment('meta', factory.createObjectLiteralExpression([
|
||||
factory.createPropertyAssignment('oakDisablePulldownRefresh', oakDisablePulldownRefresh ? factory.createTrue() : factory.createFalse())
|
||||
])),
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ function makeWebAllRouters(namespaceDir: string, projectDir: string, routerFileD
|
|||
),
|
||||
factory.createPropertyAssignment(
|
||||
'namespace',
|
||||
factory.createStringLiteral(path2)
|
||||
factory.createStringLiteral(ns)
|
||||
),
|
||||
factory.createPropertyAssignment(
|
||||
'meta',
|
||||
|
|
|
|||
Loading…
Reference in New Issue