The loan remains an obligation even if you leave your job.
If the loan is linked to salary transfers, notify the bank before the first month the transfers stop and arrange an alternative repayment method.
Review your contract, as some benefits or pricing may be salary-related, but leaving your job does not cancel the loan.