修正了routerBuilder的一些细节

This commit is contained in:
Xu Chang 2024-06-27 21:07:45 +08:00
parent ba3f9dcbab
commit 2d6c938f04
2 changed files with 2 additions and 2 deletions

View File

@ -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())
])),

View File

@ -188,7 +188,7 @@ function makeWebAllRouters(namespaceDir: string, projectDir: string, routerFileD
),
factory.createPropertyAssignment(
'namespace',
factory.createStringLiteral(path2)
factory.createStringLiteral(ns)
),
factory.createPropertyAssignment(
'meta',