It's just excess mucous to help the eye heal.
The fish would have damaged the eye and the body produces more mucous to protect the wound.
Do a 75% water change and gravel clean the substrate every day for a week and it should be fine.
Make sure any new water is free of chlorine/ chloramine before it's added to the tank.