From d26970fb3df744257808cb3137ad393f22c7ee17 Mon Sep 17 00:00:00 2001 From: wangqiao Date: Wed, 3 Sep 2025 10:54:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8F=9C=E5=8D=95=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=87=8D=E5=A4=8D=E6=B7=BB=E5=8A=A0=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/kl-menus-v2/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/kl-menus-v2/index.vue b/components/kl-menus-v2/index.vue index c9e9413..13ab075 100644 --- a/components/kl-menus-v2/index.vue +++ b/components/kl-menus-v2/index.vue @@ -49,7 +49,9 @@ const { data: tdkList } = await useAsyncData('get-tdk-list-home', async () => { const res = await getTDKList() // 添加首页 - res.data.unshift({ remark: '首页', path: '/' }) + if (!res.data.find((c) => c.remark === '首页')) { + res.data.unshift({ remark: '首页', path: '/' }) + } return res.data })