From 512b727bb90ea200516e3d8b5c4662b0729a8a30 Mon Sep 17 00:00:00 2001 From: besscroft Date: Thu, 7 Dec 2023 14:35:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(tag):=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=20tag=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/admin/list.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pages/admin/list.vue b/pages/admin/list.vue index fdfef81..420b78f 100644 --- a/pages/admin/list.vue +++ b/pages/admin/list.vue @@ -150,6 +150,14 @@ const updateShowHandle = async (val: number, id: number) => { } } +const isDiyType = (type: string) => { + return photosList.some(item => type === item.url.replace('/', '')); +} + +const tagTitleHandle = (type: string) => { + return photosList.filter(item => type === item.url.replace('/', ''))?.title +} + onBeforeMount(async () => { await dataHandle() }) @@ -172,11 +180,8 @@ definePageMeta({