@fy-/fws-vue 2.0.6 → 2.0.7
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/composables/seo.ts +6 -2
- package/package.json +1 -1
package/composables/seo.ts
CHANGED
|
@@ -115,13 +115,17 @@ export const useSeo = (seoData: Ref<LazyHead>, initial: boolean = false) => {
|
|
|
115
115
|
ogImageSecureUrl: () => seoData.value.image,
|
|
116
116
|
ogImageType: () => {
|
|
117
117
|
if (seoData.value.imageType) {
|
|
118
|
-
return seoData.value.imageType
|
|
118
|
+
return seoData.value.imageType
|
|
119
|
+
? "image/" + seoData.value.imageType
|
|
120
|
+
: "image/png";
|
|
119
121
|
}
|
|
120
122
|
return undefined;
|
|
121
123
|
},
|
|
122
124
|
twitterImageType() {
|
|
123
125
|
if (seoData.value.imageType) {
|
|
124
|
-
return seoData.value.imageType
|
|
126
|
+
return seoData.value.imageType
|
|
127
|
+
? "image/" + seoData.value.imageType
|
|
128
|
+
: "image/png";
|
|
125
129
|
}
|
|
126
130
|
return undefined;
|
|
127
131
|
},
|