在招职位列表显示

This commit is contained in:
francis_fh
2026-01-15 19:59:55 +08:00
parent a299608fca
commit a663010b61
6 changed files with 37 additions and 28 deletions

View File

@@ -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 = [];
});
}