From acb7ccaf4696d65e9032cb95ca0635c6c21cac0b Mon Sep 17 00:00:00 2001 From: wangqiao Date: Wed, 3 Sep 2025 10:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E8=8F=9C=E5=8D=95=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=BD=BF=E7=94=A8=E5=8A=A8=E6=80=81TDK=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/home/index.ts | 3 ++- api/home/type.ts | 17 ++++++++++++++- components/kl-menus-v2/index.vue | 37 +++++++++++++++++++++----------- 3 files changed, 42 insertions(+), 15 deletions(-) diff --git a/api/home/index.ts b/api/home/index.ts index 2121ff5..87b9b56 100644 --- a/api/home/index.ts +++ b/api/home/index.ts @@ -8,6 +8,7 @@ import type { ProjectTrendingScoreUserInfoVO, PageResultIndexSettingRespVO, TdkSettingsRespVO, + TdkSettingsDO, } from './type' /** @@ -101,5 +102,5 @@ export const getTDK = () => { * 获得网站 TDK栏目列表 */ export const getTDKList = () => { - return useFetchRequest.get>('/prod-api/app-api/business/tdk-settings/list-menu', {}) + return useFetchRequest.get>('/prod-api/app-api/business/tdk-settings/list-menu', {}) } \ No newline at end of file diff --git a/api/home/type.ts b/api/home/type.ts index 0a3873a..a622ea6 100644 --- a/api/home/type.ts +++ b/api/home/type.ts @@ -106,9 +106,24 @@ export interface PageResultIndexSettingRespVO { createTime: string } - export interface TdkSettingsRespVO { title: string describeText: string keyword: string } + +export interface TdkSettingsDO { + createTime?: string + updateTime?: string + creator?: string + updater?: string + deleted?: boolean + id?: number + title?: string + icon?: string + type?: number + path: string + describeText?: string + keyword?: string + remark: string +} diff --git a/components/kl-menus-v2/index.vue b/components/kl-menus-v2/index.vue index b0dceff..f9a2bb4 100644 --- a/components/kl-menus-v2/index.vue +++ b/components/kl-menus-v2/index.vue @@ -8,13 +8,13 @@
- {{ item.name }} - 火 + {{ item.remark }} + 火
@@ -31,19 +31,30 @@