From 21780580b866e2575cfdac71c214ab78f47ced49 Mon Sep 17 00:00:00 2001 From: wangqiao Date: Wed, 3 Sep 2025 09:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BD=91=E7=AB=99TDK?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=8E=B7=E5=8F=96=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/home/index.ts | 8 ++++++++ api/home/type.ts | 7 +++++++ components/seo-head/index.vue | 2 +- pages/index.vue | 7 +++++++ 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/api/home/index.ts b/api/home/index.ts index 3fd9d4c..f06a8ad 100644 --- a/api/home/index.ts +++ b/api/home/index.ts @@ -7,6 +7,7 @@ import type { ProjectDrawStatisticAppRespVO, ProjectTrendingScoreUserInfoVO, PageResultIndexSettingRespVO, + TdkSettingsRespVO, } from './type' /** @@ -88,3 +89,10 @@ export const tab2 = () => { export const getDictTree = (params: { type: number, id: number}) => { return useDollarFetchRequest.get>('/prod-api/app-api/business/app/dict/path-by-id', { query: params }) } + +/** + * 获得网站 TDK设置 + */ +export const getTDK = () => { + return useFetchRequest.get>('/prod-api/app-api/business/tdk-settings/get-index', {}) +} \ No newline at end of file diff --git a/api/home/type.ts b/api/home/type.ts index 54b3312..4600e52 100644 --- a/api/home/type.ts +++ b/api/home/type.ts @@ -105,3 +105,10 @@ export interface PageResultIndexSettingRespVO { status: number createTime: string } + + +export interface TdkSettingsRespVO { + title: string + describe: string + keywork: string +} diff --git a/components/seo-head/index.vue b/components/seo-head/index.vue index e395e9b..b7cb536 100644 --- a/components/seo-head/index.vue +++ b/components/seo-head/index.vue @@ -16,7 +16,7 @@ }) useHead({ - title: `${props.title} - 图夕夕`, + title: `${props.title}`, meta: [ { name: 'description', content: `${props.description}`}, { name: 'keywords', content: props.keywords }, diff --git a/pages/index.vue b/pages/index.vue index 95c0f13..6e6d7df 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,5 +1,6 @@