Skip to content

Commit

Permalink
fix(taro): 编译成快应用时支持自定义titleBar
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Jul 29, 2019
1 parent c00c8f3 commit a25f81f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/taro-cli/src/mini/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ function generateQuickAppManifest (quickappJSON: any) {
quickappJSON.config = Object.assign({}, quickappJSON.config, {
designWidth: projectConfig.designWidth || 750
})
if (appConfig.window && appConfig.window.navigationStyle === 'custom') {
quickappJSON.display.titleBar = false
delete quickappJSON.display.navigationStyle
}
fs.writeFileSync(path.join(outputDir, 'manifest.json'), JSON.stringify(quickappJSON, null, 2))
}

Expand Down

0 comments on commit a25f81f

Please sign in to comment.