You may have the eyes infection after a nap. That is why your eyes feel hurt. You may spend a lot of time in front of the computers with little rest. You should take notice of this. You should use some eye drops to release the symptom to make the eyes feel comfortable. In addition, you could also use warm compress to make your eyes feel comfortable.
Usually, this may not happen because take a nap won't hurt your eyes. You feel your eyes hurt may caused by other reasons such as eye strain, tired and infection or other eye diseases. Just close your eyes and wait for a moment. If you still feel your eyes hurt, you'd better go to see a doctor for a detail eye check, thus to find out what causes it. Good luck.
There are many causes for eye pain. Eye pain is described in two big categories, ocular pain and orbital pain. Ocular pain refers to the outer tissues around eyes, including pink eye, stye, belpharitis, corneal brasion or ulcer, chemical burns. While orbital pain is described as deep and dull pain in eyes, which usually refers to glaucoma, iritis, optic neuritis, migraines or trauma. I don't know what kind of pain you are suffering from. If you are alright before taking a nap, and then you get this pain, I am not sure whether you were wearing contact lenses while you were taking nap. Wear contact lenses during sleeping is very bad for eyes. It can easily cause corneal abrasion. According to the contacts lenses wearing guide and introduction from doctors, it is prohibited to wear contact lenses while sleeping. This is my guess. I suggest you to take the lenses off now to give your eyes a break. If you can, apply some wet compress to relieve your pain. However, if you didn't wear any lenses, and your pain is severe, I suggest you to visit your ophthalmologist to find out what is the direct root, so that he/she could provide proper treatment.
Well, from your description, I can see that you have got some trouble, because our eyes would not hurt without a reason. I suspect that your situation is resulted from bad napping gesture, which put some pressure on your eyeball, thus, painful feeling was generated. Anyway, try to take care of your eyes and pay more attention. Hope you get things right~