refactor: 优化SEO标题和描述配置

This commit is contained in:
wangqiao
2025-08-30 16:28:02 +08:00
parent 8e26ae9cde
commit 316d82b3ad
8 changed files with 10 additions and 3 deletions

View File

@ -16,9 +16,9 @@
}) })
useHead({ useHead({
title: `${props.title}`, title: `${props.title} - 图夕夕`,
meta: [ meta: [
{ name: 'description', content: props.description }, { name: 'description', content: `${props.description}`},
{ name: 'keywords', content: props.keywords }, { name: 'keywords', content: props.keywords },
], ],
}) })

View File

@ -1,5 +1,5 @@
<template> <template>
<SeoHead :title="detail?.title" :description="detail?.description" :keywords="detail?.labels[0]" /> <SeoHead :title="detail?.title" :description="detail?.description" :keywords="detail?.labels?.toString()" />
<KlNavTab /> <KlNavTab />
<div class="ml-auto mr-auto mt-[20px] w-[1440px]"> <div class="ml-auto mr-auto mt-[20px] w-[1440px]">
<div class="flex items-center"> <div class="flex items-center">
@ -179,6 +179,7 @@
import { downloadFile } from '~/utils/utils' import { downloadFile } from '~/utils/utils'
import { useMessage } from '~/utils/useMessage' import { useMessage } from '~/utils/useMessage'
import { Warning } from '@element-plus/icons-vue' import { Warning } from '@element-plus/icons-vue'
import SeoHead from '~/components/seo-head/index.vue'
import CardPicture from '~/components/kl-card-picture/index.vue' import CardPicture from '~/components/kl-card-picture/index.vue'
import { getDetail, getRelationRecommend, report, getUserInfo, getMainWork, createContent, createUserProject, deleteProject } from '~/api/drawe-detail/index' import { getDetail, getRelationRecommend, report, getUserInfo, getMainWork, createContent, createUserProject, deleteProject } from '~/api/drawe-detail/index'
import KlNavTab from '~/components/kl-nav-tab/index.vue' import KlNavTab from '~/components/kl-nav-tab/index.vue'

View File

@ -1,5 +1,6 @@
<template> <template>
<!-- 导航 --> <!-- 导航 -->
<SeoHead title="工程设计图纸下载_CAD设计图纸资源库" />
<KlNavTab active="图纸" :type="1" /> <KlNavTab active="图纸" :type="1" />
<div class="ma-auto w-[1440px]"> <div class="ma-auto w-[1440px]">
<!-- 图纸分类 --> <!-- 图纸分类 -->

View File

@ -1,5 +1,6 @@
<template> <template>
<!-- 导航 --> <!-- 导航 -->
<SeoHead title="工程设计图纸下载_CAD设计图纸资源库" />
<KlNavTab active="图纸" :type="1" /> <KlNavTab active="图纸" :type="1" />
<div class="ma-auto w-[1440px]"> <div class="ma-auto w-[1440px]">
<!-- 图纸分类 --> <!-- 图纸分类 -->

View File

@ -1,5 +1,6 @@
<template> <template>
<!-- 导航 --> <!-- 导航 -->
<SeoHead title="工程设计模型下载_CAD设计图纸资源库" />
<KlNavTab active="模型" :type="3" /> <KlNavTab active="模型" :type="3" />
<div class="ma-auto w-[1440px]"> <div class="ma-auto w-[1440px]">
<!-- 图纸分类 --> <!-- 图纸分类 -->

View File

@ -1,5 +1,6 @@
<template> <template>
<!-- 导航 --> <!-- 导航 -->
<SeoHead title="工程设计模型下载_CAD设计图纸资源库" />
<KlNavTab active="模型" :type="3" /> <KlNavTab active="模型" :type="3" />
<div class="ma-auto w-[1440px]"> <div class="ma-auto w-[1440px]">
<!-- 图纸分类 --> <!-- 图纸分类 -->

View File

@ -1,5 +1,6 @@
<template> <template>
<!-- 导航 --> <!-- 导航 -->
<SeoHead title="工程设计文本下载_CAD设计图纸资源库" />
<KlNavTab active="文本" :type="2" /> <KlNavTab active="文本" :type="2" />
<div class="ma-auto w-[1440px]"> <div class="ma-auto w-[1440px]">
<!-- 图纸分类 --> <!-- 图纸分类 -->

View File

@ -1,5 +1,6 @@
<template> <template>
<!-- 导航 --> <!-- 导航 -->
<SeoHead title="工程设计文本下载_CAD设计图纸资源库" />
<KlNavTab active="文本" :type="2" /> <KlNavTab active="文本" :type="2" />
<div class="ma-auto w-[1440px]"> <div class="ma-auto w-[1440px]">
<!-- 图纸分类 --> <!-- 图纸分类 -->