waibu-bootstrap 1.2.0 → 1.2.1
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/package.json
CHANGED
|
@@ -27,7 +27,7 @@ async function appLauncherTrigger () {
|
|
|
27
27
|
let src = group.img.src
|
|
28
28
|
if (!src) {
|
|
29
29
|
let logo = 'waibu'
|
|
30
|
-
const files = await fastGlob(`${this.plugin.app.main.dir.pkg}/
|
|
30
|
+
const files = await fastGlob(`${this.plugin.app.main.dir.pkg}/logo.*`)
|
|
31
31
|
if (files.length > 0) logo = 'main'
|
|
32
32
|
src = `waibuMpa:/logo/${logo}`
|
|
33
33
|
}
|
|
@@ -12,6 +12,7 @@ async function navItem () {
|
|
|
12
12
|
build = async () => {
|
|
13
13
|
const { isString } = this.plugin.lib._
|
|
14
14
|
const { groupAttrs } = this.plugin.app.waibuMpa
|
|
15
|
+
const { breakNsPath } = this.plugin.app.bajo
|
|
15
16
|
const { $ } = this.component
|
|
16
17
|
const group = groupAttrs(this.params.attr, ['dropdown', 'badge'])
|
|
17
18
|
this.params.attr = group._
|
|
@@ -22,11 +23,14 @@ async function navItem () {
|
|
|
22
23
|
!this.params.attr.href.startsWith('#') &&
|
|
23
24
|
!this.params.attr.href.startsWith('http://') &&
|
|
24
25
|
!this.params.attr.href.startsWith('https://')) {
|
|
25
|
-
|
|
26
|
+
const route = this.plugin.app.waibu.findRoute(this.params.attr.ohref)
|
|
27
|
+
if (!route) {
|
|
26
28
|
this.params.html = ''
|
|
27
29
|
this.params.noTag = true
|
|
28
30
|
return
|
|
29
31
|
}
|
|
32
|
+
const { realFullPath } = breakNsPath(this.params.attr.ohref)
|
|
33
|
+
this.params.attr.href = realFullPath
|
|
30
34
|
}
|
|
31
35
|
if (group.dropdown) {
|
|
32
36
|
this.params.attr.class.push('dropdown-toggle')
|