feat: 为各个页面补全标题与SEO
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m4s

This commit is contained in:
2025-11-07 15:37:18 +08:00
parent 1cdc29b1ce
commit 0265ea4978
16 changed files with 150 additions and 10 deletions

View File

@ -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>

View File

@ -102,6 +102,11 @@
];
}
});
const pageTitle = $t('page-title.products');
usePageSeo({
title: pageTitle,
});
</script>
<style scoped>