feat: 为各个页面补全标题与SEO
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m4s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m4s
This commit is contained in:
@ -38,6 +38,11 @@
|
||||
statusMessage: '文件未找到',
|
||||
});
|
||||
}
|
||||
|
||||
const pageTitle = $t('page-title.download');
|
||||
usePageSeo({
|
||||
title: file.value.filename_download || pageTitle,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@ -19,9 +19,16 @@
|
||||
return toHomepageView(data.value);
|
||||
});
|
||||
|
||||
const pageTilte = $t('page-title.homepage');
|
||||
|
||||
watch(error, (value) => {
|
||||
if (value) {
|
||||
console.error('数据获取失败: ', value);
|
||||
}
|
||||
});
|
||||
|
||||
useSeoMeta({
|
||||
title: pageTilte,
|
||||
description: $t('company-description'),
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -60,14 +60,9 @@
|
||||
});
|
||||
|
||||
// SEO
|
||||
useHead({
|
||||
title: computed(() => product.value?.name || 'Product Detail'),
|
||||
meta: [
|
||||
{
|
||||
name: 'description',
|
||||
content: computed(() => product.value?.summary || ''),
|
||||
},
|
||||
],
|
||||
usePageSeo({
|
||||
title: product.value.name || $t('page-title.products'),
|
||||
description: product.value.summary || '',
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -102,6 +102,11 @@
|
||||
];
|
||||
}
|
||||
});
|
||||
|
||||
const pageTitle = $t('page-title.products');
|
||||
usePageSeo({
|
||||
title: pageTitle,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@ -49,6 +49,11 @@
|
||||
console.error('数据获取失败: ', value);
|
||||
}
|
||||
});
|
||||
|
||||
usePageSeo({
|
||||
title: solution.value.title || $t('page-title.solutions'),
|
||||
description: solution.value.summary || '',
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@ -86,6 +86,11 @@
|
||||
console.error('数据获取失败: ', value);
|
||||
}
|
||||
});
|
||||
|
||||
const pageTitle = $t('page-title.solutions');
|
||||
usePageSeo({
|
||||
title: pageTitle,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@ -31,6 +31,11 @@
|
||||
console.error('数据获取失败: ', value);
|
||||
}
|
||||
});
|
||||
|
||||
const pageTitle = $t('page-title.contact-us');
|
||||
usePageSeo({
|
||||
title: pageTitle,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@ -111,6 +111,11 @@
|
||||
console.error('数据获取失败: ', value);
|
||||
}
|
||||
});
|
||||
|
||||
const pageTitle = $t('page-title.documents');
|
||||
usePageSeo({
|
||||
title: pageTitle,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@ -112,6 +112,11 @@
|
||||
console.error('数据获取失败: ', value);
|
||||
}
|
||||
});
|
||||
|
||||
const pageTitle = $t('page-title.faq');
|
||||
usePageSeo({
|
||||
title: pageTitle,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@ -52,6 +52,11 @@
|
||||
iconComponent: ElIconService,
|
||||
},
|
||||
];
|
||||
|
||||
const pageTitle = $t('page-title.support');
|
||||
usePageSeo({
|
||||
title: pageTitle,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user