fix: 添加coach参数类型注解

This commit is contained in:
hyql 2026-07-09 10:02:54 +08:00
commit 8df9827367
5 changed files with 120 additions and 23 deletions

View file

@ -44,4 +44,15 @@ export const getByPage = (query) => {
})
const start = (page - 1) * limit
return { total: result.length, data: result.slice(start, start + limit) }
}
}
// 离职
export const quit = (id) => {
const target = list.find(item => item.id === id)
target.quitDate = new Date().toLocaleDateString()
}
// 复职
export const rejoin = (id) => {
const target = list.find(item => item.id === id)
target.quitDate = null
}