The first and best advice I could give you is to simply buy another charger.
We can find it very cheaply, more or less 15 bucks ....
But if you really want to fix it, the first thing to do is rinse it in distilled or deionized water, dry it very well.
Watch out for water that remains below the components.
It would then be necessary to make an insulation measurement between primary and secondary circuits with a 500V megger.
If the insulation resistance is greater than 10 Mohms, you can test it by supplying it with 230Vac.
Beware of the dangers of electrocution, if you are not qualified, never supply the charger with its case open.
Measure the no load output voltage ..... if it is not 7.5V, it is better to abandon this repair, it is not worth it.