这个提示是在执行 yield call(queryDeptAttendanceTime)
这行代码时出现的,它告诉我们找不到名称为 queryDeptAttendanceTime
的函数。可能你的代码中没有定义名为 queryDeptAttendanceTime
的函数。
根据提示信息来看,它建议你将 queryDeptAttendanceTime
改成 listDeptAttendanceTime
。也就是说,在调用异步函数时应该使用正确的函数名,否则会报错。
因此,可以修改代码如下:
const response = yield call(listDeptAttendanceTime);
这样就可以正常调用名为 listDeptAttendanceTime
的异步函数了。