Commit fa74c8f3 by chenwq

员工管理

1 parent 6c7640d9
......@@ -69,12 +69,12 @@ Page({
isAsk: true
})
mineApi.getStaffListAPI(params).then(res => {
let tempList = isReset ? res?.list || [] : this.data.staffList.concat(res?.list || [])
let tempList = isReset ? res?.data || [] : this.data.staffList.concat(res?.data || [])
this.setData({
staffList: tempList,
currentPage: currentPage + 1,
total: res.total,
nothing: res.total == tempList.length,
total: res.count,
nothing: res.count == tempList.length,
triggered: false
})
if (isReset) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!