The WW2 Origins of Carrots and Eyesight

It’s a useful phrase to tell small children but is it true?