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:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user