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