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