请问大神们这种是什么写法呢'delete'(state,{payload:id})reducers:{'delete'(state,{payload:id}){returnstate.filter(item=>item.id!==id);},}
reducers:{'delete'(state,{payload:id}){returnstate.filter(item=>item.id!==id);},}
'delete'(state,{payload:id}){returnstate.filter(item=>item.id!==id);},}
returnstate.filter(item=>item.id!==id);},}
},}
}
有只小跳蛙
相关分类