在招职位列表显示
This commit is contained in:
@@ -140,6 +140,8 @@
|
||||
isCollection: resData.data.isCollection || 0,
|
||||
jobList: resData.data.jobList || [] // 使用正确的jobList字段
|
||||
};
|
||||
// 将职位列表数据赋值给jobInfoList,用于页面渲染
|
||||
jobInfoList.value = resData.data.jobList || [];
|
||||
console.log('Company details loaded successfully');
|
||||
} else {
|
||||
console.error('Failed to load company details:', resData?.msg || 'Unknown error');
|
||||
@@ -151,6 +153,7 @@
|
||||
isCollection: 0,
|
||||
jobList: []
|
||||
};
|
||||
jobInfoList.value = [];
|
||||
}
|
||||
}).catch((error) => {
|
||||
console.error('API error when fetching company details:', error);
|
||||
@@ -162,6 +165,7 @@
|
||||
isCollection: 0,
|
||||
jobList: []
|
||||
};
|
||||
jobInfoList.value = [];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user