I don't know if it is the same for cats, as with humans but if she vomits and can't eat at times, I wonder if it could be a problem with her intestines? ask your vet...
good luck I hope she gets better soon.