@@ -40,8 +40,8 @@ export default function AddLabel(props: { labels: any }) {
function confirmPickerTime(e){
createSchedule({
- category:'EAT',
- label:value,
+ event:'EAT_CUSTOM',
+ title:value,
time:e
}).then(res=>{
if (process.env.TARO_ENV=='weapp'){
@@ -37,8 +37,9 @@ export default function MealList() {
}
function delItem(index) {
- delSchedule(list[index].code).then(res => {
+ delSchedule(list[index].id).then(res => {
schedules()
+ global.refreshWindow()
})