@afeefa/vue-app 0.0.328 → 0.0.329
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.329
|
package/package.json
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
<script>
|
|
41
41
|
import { Component, Vue, Watch } from '@a-vue'
|
|
42
|
+
import { adminConfig } from '@a-admin/config/AdminConfig'
|
|
42
43
|
import { SaveEvent } from './save-indicator/SaveEvent'
|
|
43
44
|
import { routeConfigPlugin } from '@a-vue/plugins/route-config/RouteConfigPlugin'
|
|
44
45
|
|
|
@@ -124,6 +125,17 @@ export default class ABreadcrumbs extends Vue {
|
|
|
124
125
|
this.breadcrumbs = breadcrumbs
|
|
125
126
|
this.wrapBreadcrumbs_ = false
|
|
126
127
|
|
|
128
|
+
const titles = breadcrumbs
|
|
129
|
+
.filter(b => b.title && b.title !== '...')
|
|
130
|
+
.map(b => b.title)
|
|
131
|
+
const appTitle = adminConfig.app.title
|
|
132
|
+
if (titles.length) {
|
|
133
|
+
const pageTitle = titles.reverse().join(' – ')
|
|
134
|
+
document.title = appTitle ? `${pageTitle} | ${appTitle}` : pageTitle
|
|
135
|
+
} else if (appTitle) {
|
|
136
|
+
document.title = appTitle
|
|
137
|
+
}
|
|
138
|
+
|
|
127
139
|
this.scrollBreadcrumbs()
|
|
128
140
|
}
|
|
129
141
|
|