From 6f58ba2389dfcb38a437c9217547795023897cd1 Mon Sep 17 00:00:00 2001 From: wangqiao Date: Tue, 23 Sep 2025 23:14:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B7=A5=E5=85=B7=E7=AE=B1?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E5=8F=8AAPI=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/toolbox/index.ts | 9 ++++++ pages/toolbox-detail/{index.vue => [id].vue} | 34 ++++++++++++++------ pages/toolbox/index.vue | 2 +- 3 files changed, 34 insertions(+), 11 deletions(-) rename pages/toolbox-detail/{index.vue => [id].vue} (56%) diff --git a/api/toolbox/index.ts b/api/toolbox/index.ts index 28b1e18..f6e23e5 100644 --- a/api/toolbox/index.ts +++ b/api/toolbox/index.ts @@ -19,3 +19,12 @@ export const page = (params: any) => { query: params, }) } + +/** + * 获得工具箱 + */ +export const get = (params: { id: string }) => { + return useFetchRequest.get>('/prod-api/app-api/business/resource/get', { + query: params, + }) +} diff --git a/pages/toolbox-detail/index.vue b/pages/toolbox-detail/[id].vue similarity index 56% rename from pages/toolbox-detail/index.vue rename to pages/toolbox-detail/[id].vue index d81d574..20c2732 100644 --- a/pages/toolbox-detail/index.vue +++ b/pages/toolbox-detail/[id].vue @@ -1,27 +1,31 @@ diff --git a/pages/toolbox/index.vue b/pages/toolbox/index.vue index 3ba73ad..59ad446 100644 --- a/pages/toolbox/index.vue +++ b/pages/toolbox/index.vue @@ -188,7 +188,7 @@ } const handleClick = (item: ProjectDrawPageRespVO) => { - navigateTo(`/toolbox-detail`) + navigateTo(`/toolbox-detail/${item.id}`) } const { data: recommendList } = await useAsyncData(`draw-recommend-list-getRelationRecommend`, async () => {