Question: how to connect mobile to pc mi a1?
Answer: Download the desktop app from its website and the mobile app from Google Play.
Turn on USB debugging on the phone and also enable "USB debugging (Security settings)". Use USB cable to connect Mi A1 to the computer. ... 
When it all finishes, A1 will soon be casted to the computer.