From 81caa02d11e5a789144331369b88095dd5a7c3da Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Tue, 11 Nov 2025 17:02:02 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/composables/directus/useProduct.ts | 99 -------------------------- 1 file changed, 99 deletions(-) diff --git a/app/composables/directus/useProduct.ts b/app/composables/directus/useProduct.ts index d8022c9..e264cb0 100644 --- a/app/composables/directus/useProduct.ts +++ b/app/composables/directus/useProduct.ts @@ -11,104 +11,5 @@ export const useProduct = (id: string) => { id: id, locale: locale, }); - // return await $directus.request( - // readItem('products', id, { - // fields: [ - // 'id', - // { translations: ['id', 'name', 'summary', 'description'] }, - // { - // images: [ - // 'id', - // { - // product_images_id: [ - // 'id', - // 'image', - // { translations: ['id', 'caption'] }, - // ], - // }, - // ], - // }, - // { - // specs: [ - // 'id', - // { - // translations: ['*'], - // }, - // { - // specs: [ - // 'id', - // { - // translations: ['id', 'key', 'value'], - // }, - // ], - // }, - // ], - // }, - // { - // faqs: [ - // 'id', - // { - // questions_id: [ - // 'id', - // { - // translations: ['id', 'title', 'content'], - // }, - // ], - // }, - // ], - // }, - // { - // documents: [ - // 'id', - // { - // product_documents_id: [ - // 'id', - // { - // file: ['id', 'filesize', 'filename_download'], - // }, - // { - // translations: ['id', 'title'], - // }, - // ], - // }, - // ], - // }, - // ], - // deep: { - // translations: { - // _filter: { - // languages_code: { _eq: locale }, - // }, - // }, - // images: { - // product_images_id: { - // translations: { - // _filter: { - // languages_code: { _eq: locale }, - // }, - // }, - // }, - // }, - // faqs: { - // questions_id: { - // translations: { - // _filter: { - // languages_code: { _eq: locale }, - // }, - // }, - // }, - // }, - // documents: { - // documents_id: { - // translations: { - // _filter: { - // languages_code: { _eq: locale }, - // }, - // }, - // }, - // }, - // }, - // }) - // ); }); };