Laptop charges fine when turned off but when turned on with cord plugged in it turns off.

Oct 26, 2018
1
0
10
When I plug my laptop in while turned off it charges fine but if I turn it on while the charger is plugged in it turns off after 30 seconds same as if I plug it in after it’s been on and needs to charge. Please help