Urgent !!!! The dog ate purple potion water

My dog's paw was injured. I gave him some purple potion .. He was always sweet .. I didn't care about it anymore `
but now he has been spitting saliva ... I have flowed a lot ... What should I do? Ah !! Is there anything wrong?