修改首页企业岗位分页查询问题

This commit is contained in:
sh
2025-12-19 10:53:57 +08:00
parent 0028c81d7d
commit 872b68b0f2

View File

@@ -796,15 +796,15 @@ async function loadData() {
throw err; throw err;
} }
} }
const pageNull = ref(1); const pageNull = ref(0);
function scrollBottom() { function scrollBottom() {
console.log('scrollBottom------') console.log('scrollBottom------')
if (loadmoreRef.value && typeof loadmoreRef.value.change === 'function') { if (loadmoreRef.value && typeof loadmoreRef.value.change === 'function') {
loadmoreRef.value.change('loading'); loadmoreRef.value.change('loading');
} }
if (state.tabIndex === 'all') { if (state.tabIndex === 'all') {
pageNull.value++;
getJobRecommend(); getJobRecommend();
pageNull.value++;
} else { } else {
getJobList(); getJobList();
} }