Hi
Our Lottie does the same, we swear she can tell the difference between dogs and cats. What we do is put our hand over her eyes and hold her firmly telling her NO!
We also throw her a ball or chew toy and tell her shush and she will then shake the toy with a quiet growl until the dog has gone.
I think she thinks it is a window and she is chasing the dogs away and of course she is always successful as the dogs do always go

You have to be consistent though so if you are watching the telly try having her close so you can be ready.
We have never cured it but have reduced it and made it bearable. Good Luck