kun-scheduler icon indicating copy to clipboard operation
kun-scheduler copied to clipboard

when frontend is compiled and yarn start, 70 errors happen!

Open theseusyang opened this issue 2 years ago • 0 comments

Object literal may only specify known properties, and 'data' does not exist in type 'Action<{ loading: boolean; error: string | null; pageNum: number; pageSize: number; totalCount: number; data: []; isInit: boolean; }, void>'. 38 | const res = await searchTaskDefinition(payload); 39 | if (res) {

40 | dispatch.dataDevelopment.updateTasklist({ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 41 | data: res.records, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 42 | loading: false, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 43 | totalCount: res.totalCount, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 44 | pageNum: res.pageNum, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 45 | pageSize: res.pageSize, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 46 | isInit: true, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 47 | }); | ^^^^^^^^^ 48 | } 49 | dispatch.dataDevelopment.updateTasklist({ 50 | loading: false,

theseusyang avatar Jun 27 '22 04:06 theseusyang