With the inland application route, you are supposed to be living in Canada. If you want to leave, there's always some chance you may not be allowed back in - which will cancel your application. If you do leave, you need to keep the trip short (1-2 months is too long). Overall, it's better if you stay in Canada until the application is approved.