Usually the best way is to try and wade through it and do the best you can. Your body may need slightly more calories during your TOM or maybe you need iron and the cravings your body is having for spinach are getting misinterpreted as chocolate?
One of the best things for me is to revisit my motivations, making sure that most of my motivations are positive. So not "I want to lose weight because I think I look bad now," but " I want to lose weight because I want to feel the triumph of a fitter me." Another thing is to do something to pamper yourself to remind yourself that you are worth all the time and energy to lose the weight. We can often feel rundown and feel like we need "a treat" and that gets translated as a food we crave. Is there some other type of special treat you can give yourself?