chore: 删除无用代码
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m30s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m30s
This commit is contained in:
@ -11,104 +11,5 @@ export const useProduct = (id: string) => {
|
|||||||
id: id,
|
id: id,
|
||||||
locale: locale,
|
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 },
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// })
|
|
||||||
// );
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user