@imaginario27/air-ui-ds 1.0.19 → 1.0.20
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.
|
@@ -109,6 +109,10 @@ const props = defineProps({
|
|
|
109
109
|
type: Array as PropType<ErrorMapping[]>,
|
|
110
110
|
default: () => [],
|
|
111
111
|
},
|
|
112
|
+
setPageTitle: {
|
|
113
|
+
type: Boolean as PropType<boolean>,
|
|
114
|
+
default: true,
|
|
115
|
+
},
|
|
112
116
|
showIcon: {
|
|
113
117
|
type: Boolean as PropType<boolean>,
|
|
114
118
|
default: true,
|
|
@@ -244,10 +248,13 @@ const resolvedErrorMapping = computed(() => {
|
|
|
244
248
|
combined.find(mapping => mapping.statusCode === -1)!
|
|
245
249
|
)
|
|
246
250
|
})
|
|
251
|
+
|
|
247
252
|
const pageTitleText = computed(() => resolvedErrorMapping.value.title)
|
|
248
253
|
|
|
249
254
|
watchEffect(() => {
|
|
250
|
-
|
|
255
|
+
if (props.setPageTitle) {
|
|
256
|
+
document.title = pageTitle(pageTitleText.value, App.NAME)
|
|
257
|
+
}
|
|
251
258
|
})
|
|
252
259
|
|
|
253
260
|
// Alignment classes
|