waibu 1.2.11 → 1.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -47,6 +47,7 @@ async function factory (pkgName) {
|
|
|
47
47
|
},
|
|
48
48
|
paramsCharMap: {},
|
|
49
49
|
logRoutes: true,
|
|
50
|
+
pageTitleFormat: '%s : %s',
|
|
50
51
|
siteInfo: {
|
|
51
52
|
title: 'My Website',
|
|
52
53
|
orgName: 'My Organization'
|
|
@@ -275,6 +276,7 @@ async function factory (pkgName) {
|
|
|
275
276
|
const { isEmpty, get, trimEnd, trimStart } = this.lib._
|
|
276
277
|
const { breakNsPath } = this.app.bajo
|
|
277
278
|
const { query = {}, base = 'waibu', params = {}, guessHost } = options
|
|
279
|
+
if (isEmpty(name)) return name
|
|
278
280
|
|
|
279
281
|
const plugin = getPlugin(base)
|
|
280
282
|
const cfg = plugin.config ?? {}
|