@shwfed/nuxt 0.1.73 → 0.1.74
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/dist/module.json
CHANGED
|
@@ -31,6 +31,7 @@ const {
|
|
|
31
31
|
}
|
|
32
32
|
} = useRuntimeConfig();
|
|
33
33
|
useHead({
|
|
34
|
+
title: () => active.value && getTabLabel(active.value),
|
|
34
35
|
bodyAttrs: {
|
|
35
36
|
style: {
|
|
36
37
|
"--primary": "#2DA8BC",
|
|
@@ -83,14 +84,6 @@ const isNavigationItemActive = (itemRoute) => isRouteActive(route.path, itemRout
|
|
|
83
84
|
const getTabLabel = (tab) => {
|
|
84
85
|
return resolveNavigationTitle(navigationItems.value, tab);
|
|
85
86
|
};
|
|
86
|
-
const activeTabLabel = computed(() => {
|
|
87
|
-
if (active.value === void 0)
|
|
88
|
-
return void 0;
|
|
89
|
-
return getTabLabel(active.value);
|
|
90
|
-
});
|
|
91
|
-
useHead(() => ({
|
|
92
|
-
title: activeTabLabel.value
|
|
93
|
-
}));
|
|
94
87
|
const profileName = computed(() => {
|
|
95
88
|
if (config.profile.name === void 0)
|
|
96
89
|
return t("profile");
|