If you're asking Does poor vision or wearing glasses mean I cannot get a CPL the answer is no, not automatically. When you're considering the question Can I pursue CPL if I have had past medical issues vision problems are just one part of the medical fitness overview what matters most is your current fitness under the Directorate General of Civil Aviation (DGCA) Class 1 medical standards.
For a CPL you must clear the Class 1 Medical exam. One of the key items is vision distant and near vision, depth perception, and also colour vision.
If your vision is not perfect naturally but can be corrected via glasses or contact lenses to meet the required standard, you may still be eligible. For example candidates whose distant vision can be corrected to 6/6 in one eye and 6/9 in the other with corrective lenses are acceptable.
However certain vision issues like colour blindness may be disqualifying for a CPL.
When you ask Can I Pursue CPL if I Have Had Past Medical Issues keep in mind: the DGCA (or the aviation medical examiner) looks at your current health and fitness, not just a record of past issues.
If your poor vision or past eye treatment has been resolved and your current corrected vision meets the standard, you can move ahead.
It's important to be honest about any medical history and to bring full documentation of past treatment, current status and corrective measures (like lenses) when you go for the medical exam.
past medical issues do not necessarily stop you what counts is that your present condition is stable and meets regulatory medical standards.
So yes you can pursue a CPL even if you wear glasses or have had vision issues in the past. The main thing is: your current vision must be correctable to meet the DGCA's standard you must not have disqualifying conditions (like colour blindness in many cases) and you must pass the Class 1 medical. If your past medical issues are under control and documented, you're still very much in the running.