The meds to treat this kind of infection would have to come from a Vet. It could be nothing, but if it is dehydration you will need Unflavored Pedialyte. You add 1 ounce of Unflavored Pedialyte for every 10 ounces of luke warm dechlorinated water. Bath needs to be chin deep or to the frog's throat and soak for 20 minutes.
You could purchase a fish antibiotic called Melafix to treat some bacterial infections in frogs. You will need to follow diluting instructions to the letter especially for a baby frog. You will soak the frog in the Melafix treated bath for 15 to 20 minutes per day, but don't do this soak unless it is actually a bacterial infection. As long as the mucus remains Clear/white should be ok.