src/api/data.js
@@ -12,10 +12,17 @@ { id: 3, value: "休假" }, { id: 4, value: "异常" }, ] const silkSet=[ { id: 1, value: "野纤" }, { id: 2, value: "大野" }, { id: 3, value: "特野" }, ] export const getDataByType = (type) => { if (type == "projectOptions") { return projectOptions }else if(type=='attendanceStatus'){ return attendanceStatus }else if(type=='silkSet'){ return silkSet; } }