Browse Source

feat: 更新SEO优化标题和描述

本次提交主要进行了以下修改:
1. 在关于页面中更新了SEO标题,添加了“Hanye”后缀。
2. 在产品详情页面中优化了SEO标题,确保产品名称后缀为“Hanye”。
3. 在产品列表页面中更新了SEO标题和描述,使用国际化配置中的内容。

这些改动旨在提升网站的搜索引擎优化效果,增强用户对页面内容的理解。
master
lizhuang 1 month ago
parent
commit
0ea08a5489
3 changed files with 5 additions and 5 deletions
  1. 1
    1
      pages/about.vue
  2. 2
    2
      pages/products/[id].vue
  3. 2
    2
      pages/products/index.vue

+ 1
- 1
pages/about.vue View File

@@ -218,7 +218,7 @@ const companyInfo = ref<CompanyInfo>({

// SEO优化
useHead({
title: t("about.title"),
title: `${t("about.title")} - Hanye`,
meta: [
{
name: "description",

+ 2
- 2
pages/products/[id].vue View File

@@ -743,11 +743,11 @@ function handleScroll() {

// SEO优化
useHead(() => ({
title: `${product.value?.name || "产品详情"} - Hanye`,
title: `${product.value?.name} - Hanye`,
meta: [
{
name: "description",
content: product.value?.description || "产品详情页面",
content: product.value?.description,
},
],
}));

+ 2
- 2
pages/products/index.vue View File

@@ -719,11 +719,11 @@ const resetFilters = () => {

// SEO优化
useHead({
title: "产品列表 - Hanye",
title: `${t("products.title")} - Hanye`,
meta: [
{
name: "description",
content: "浏览我们的产品列表,找到适合您的解决方案。",
content: `${t("products.description")}`,
},
],
});

Loading…
Cancel
Save