Fix: 优化请求结构
This commit is contained in:
@ -95,9 +95,7 @@ onMounted(async () => {
|
|||||||
production.value = {
|
production.value = {
|
||||||
...item,
|
...item,
|
||||||
}
|
}
|
||||||
console.log('Production details:', production.value)
|
|
||||||
}
|
}
|
||||||
console.log('Parsed production:', production.value?.production_specs)
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to fetch production:', error)
|
console.error('Failed to fetch production:', error)
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@ -48,7 +48,14 @@ const groupedProductions = computed(() => {
|
|||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await find<Production>('productions', {
|
const response = await find<Production>('productions', {
|
||||||
|
populate: {
|
||||||
|
production_image: {
|
||||||
populate: '*',
|
populate: '*',
|
||||||
|
},
|
||||||
|
production_type: {
|
||||||
|
populate: '*',
|
||||||
|
}
|
||||||
|
},
|
||||||
filters: {
|
filters: {
|
||||||
show_in_production_list: {
|
show_in_production_list: {
|
||||||
$eq: true, // 只获取在产品列表中显示的产品
|
$eq: true, // 只获取在产品列表中显示的产品
|
||||||
|
|||||||
Reference in New Issue
Block a user