waibu-bootstrap 2.6.1 → 2.6.2
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.
|
@@ -20,17 +20,11 @@ async function appLauncherTrigger () {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
build = async () => {
|
|
23
|
-
const { fastGlob } = this.app.lib
|
|
24
23
|
const { groupAttrs, stringifyAttribs } = this.app.waibuMpa
|
|
25
24
|
const group = groupAttrs(this.params.attr, ['img'])
|
|
26
25
|
this.params.attr = group._
|
|
27
26
|
let src = group.img.src
|
|
28
|
-
if (!src)
|
|
29
|
-
let logo = 'waibu'
|
|
30
|
-
const files = await fastGlob(`${this.app.main.dir.pkg}/logo.*`)
|
|
31
|
-
if (files.length > 0) logo = 'main'
|
|
32
|
-
src = `waibuMpa:/logo/${logo}`
|
|
33
|
-
}
|
|
27
|
+
if (!src) src = 'waibuMpa:/logo/main'
|
|
34
28
|
this.params.tag = 'a'
|
|
35
29
|
const sentence = [
|
|
36
30
|
`<c:img src="${src}"`,
|
package/package.json
CHANGED