Gary Bowyer's side, who beat Falkirk in the League Cup in midweek, led through Zach Robinson's penalty, before the AFC Wimbledon loanee screamed in a stunning second just before the break.
Zak Rudden added a third with 20 minutes remaining as Dundee won their first league game in three.
This moves the Dee into third place above Queen's Park on goal difference .