From fa971cff5b0e32f511a2232f591ccb688da7e7e3 Mon Sep 17 00:00:00 2001 From: wangqiao Date: Tue, 2 Sep 2025 17:49:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=89=88=E6=9C=AC=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=8E=B7=E5=8F=96=E9=80=BB=E8=BE=91=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E5=8D=87=E7=BB=84=E4=BB=B6=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/kl-wallpaper-category/index.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/components/kl-wallpaper-category/index.vue b/components/kl-wallpaper-category/index.vue index 665c120..69a1f1e 100644 --- a/components/kl-wallpaper-category/index.vue +++ b/components/kl-wallpaper-category/index.vue @@ -83,6 +83,13 @@ return props.type === 1 ? '图纸' : props.type === 3 ? '模型' : '文本' }) + /** 版本 */ + const { data: editionsList } = useAsyncData(`editionsList-${props.type}-${Date.now()}`, async () => { + const res = await parent({ type: 2, parentId: 0 }) + const all = [{ id: '-1', name: '全部' }] + return [...all, ...res.data] + }) + // 获取面包屑 const { data: breadList } = await useAsyncData( `breadList-${props.type}-${props.id}-${query.value.projectType}-${Date.now()}`, @@ -172,12 +179,7 @@ { server: true } // 确保在服务端执行 ) - /** 版本 */ - const { data: editionsList } = useAsyncData(`editionsList-${props.type}-${Date.now()}`, async () => { - const res = await parent({ type: 2, parentId: 0 }) - const all = [{ id: '-1', name: '全部' }] - return [...all, ...res.data] - }) + const handleClick = (row: any) => { query.value.title = ''